===================================================================
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
.
-
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
.
+ 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.
-