=================================================================== RCS file: /cvsrepo/anoncvs/cvs/www/Attic/porting.html,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- www/Attic/porting.html 1998/08/13 23:11:18 1.10 +++ www/Attic/porting.html 1998/08/18 02:49:25 1.11 @@ -266,11 +266,13 @@ ``new curses''. Change:
ncurses.h ==> curses.h
-lncurses ==> -lcurses
- ``Old curses'' is available as ocurses.h/libocurses. -
  • In OpenBSD, terminal discipline has been upgraded from the older sgtty - standard BSD fcntl to the newer POSIX tcgetattr family. + ``old (BSD) curses'' is available by defining _USE_OLD_CURSES_ + before including curses.h (usually in a Makefile) and + linking with -lcurses. +
  • In OpenBSD, terminal discipline has been upgraded from the older BSD + sgtty to the newer POSIX tcgetattr family. Avoid the older style in new code. Some code may define tcgetattr - to be a synonym for the older fcntl, but this is at best a stopgap + to be a synonym for the older sgtty, but this is at best a stopgap measure on OpenBSD. The xterm source code is a very good example of what not to do. Try to get your system functionality right: you want a type that remembers @@ -283,7 +285,7 @@ you should leave your terminal in a sane state. Do your tests under an older shell, such as sh, which does not reset the terminal in any way at program's termination. -
  • The newer termcap and curses, as included with OpenBSD, include standard sequences +
  • The newer termcap/terminfo and curses, as included with OpenBSD, include standard sequences for controlling color terminals. You should use these if possible, reverting to standard ANSI color sequences on other systems. However, some terminal descriptions have not been updated yet, and you may need to be able to specify these sequences manually. @@ -296,6 +298,6 @@
    OpenBSD www@openbsd.org -
    $OpenBSD: porting.html,v 1.10 1998/08/13 23:11:18 espie Exp $ +
    $OpenBSD: porting.html,v 1.11 1998/08/18 02:49:25 millert Exp $