From: CSRG Date: Fri, 15 Apr 1994 02:49:16 +0000 (-0800) Subject: BSD 4_4_Lite1 development X-Git-Tag: BSD-4_4_Lite2^2~49 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/1efab341e854b3a5a40a29f0458ec5f1ce6d4212 BSD 4_4_Lite1 development Work on file usr/src/contrib/nvi.1.14/PORT/sunos.4.1.1/README Synthesized-from: CSRG/cd2/4.4BSD-Lite1 --- 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 index 0000000000..bfa7e55ec0 --- /dev/null +++ b/usr/src/contrib/nvi.1.14/PORT/sunos.4.1.1/README @@ -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 + +#include +#include + +#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(); +}