BSD 4_4_Lite1 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Fri, 15 Apr 1994 02:49:16 +0000 (18:49 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Fri, 15 Apr 1994 02:49:16 +0000 (18:49 -0800)
Work on file usr/src/contrib/nvi.1.14/PORT/sunos.4.1.1/README

Synthesized-from: CSRG/cd2/4.4BSD-Lite1

usr/src/contrib/nvi.1.14/PORT/sunos.4.1.1/README [new file with mode: 0644]

diff --git a/usr/src/contrib/nvi.1.14/PORT/sunos.4.1.1/README b/usr/src/contrib/nvi.1.14/PORT/sunos.4.1.1/README
new file mode 100644 (file)
index 0000000..bfa7e55
--- /dev/null
@@ -0,0 +1,44 @@
+SunOS 4.1.X curses is broken.  It occasionally repaints the wrong thing
+on the screen, and nobody has been able to figure out a workaround other
+than to rewrite curscr every time stdscr is modified.  This, obviously,
+trashes performance.  A test program is attached.
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+/*
+ * Compile with: 
+ * /usr/5bin/cc -DSYSV_CURSES curse.c -lcurses
+ *
+ * Broken on: SunOS virtual61 4.1.3C 8 sun4m
+ *
+ * The broken behavior can be seen in that the line is first displayed,
+ * then redisplayed, with a missing the 'r' from the word "different",
+ * and then redisplayed correctly.
+ */
+#include <sys/types.h>
+
+#include <curses.h>
+#include <stdio.h>
+
+#define        S1 "ing different traces, both beginning at the same time"
+#define        S2 "          using different traces, both beginning at the same time"
+
+main()
+{
+#ifdef SYSV_CURSES
+       newterm("xterm", stdout, stdin);
+#else
+       initscr();
+#endif
+       mvaddstr(0, 0, S1);
+       refresh();
+       write(1, "\07", 1);
+       sleep(2);
+       mvaddstr(0, 0, S2);
+       refresh();
+       write(1, "\07", 1);
+       sleep(2);
+       wrefresh(curscr);
+       write(1, "\07", 1);
+       sleep(2);
+       endwin();
+}