 UP is not used by ncurses. PC is used in the tdelay_output function. BC is used in the tgoto emulation. The variable ospeed is set by ncurses in a system-specific coding to reflect the terminal speed.
Except where explicitly noted, routines that return an integer return ERR upon failure and OK (SVr4 only specifies "an integer value other than ERR") upon successful comple- tion. Routines that return pointers return NULL on error.
If you call tgetstr to fetch ca or any other parameterized string, be aware that it will be returned in terminfo nota- tion, not the older and not-quite-compatible termcap nota- tion. This won't cause problems if all you do with it is call tgoto or tparm, which both expand terminfo-style strings as terminfo. (The tgoto function, if configured to support termcap, will check if the string is indeed terminfo-style by looking for "%p" parameters or "$<..>" delays, and invoke a termcap-style parser if the string does not appear to be terminfo). Because terminfo conventions for representing padding in string capabilities differ from termcap's, tputs("50"); will put out a literal "50" rather than busy-waiting for 50 mil- liseconds. Cope with it. Note that termcap has nothing analogous to terminfo's sgr string. One consequence of this is that termcap applications assume me (terminfo sgr0) does not reset the alternate char- acter set. This implementation checks for, and modifies the data shown to the termcap interface to accommodate termcap's limitation in this respect.
The XSI Curses standard, Issue 4 describes these functions. However, they are marked TO BE WITHDRAWN and may be removed in future versions. Neither the XSI Curses standard nor the SVr4 man pages docu- mented the return values of tgetent correctly, though all three were in fact returned ever since SVr1. In particular, an omission in the XSI Curses documentation has been misin- terpreted to mean that tgetent returns OK or ERR. Because the purpose of these functions is to provide compatibility with the termcap library, that is a defect in XCurses, Issue MirOS BSD #10-current Printed 4.7.2014 2 curs_termcap(3) UNIX Programmer's Manual curs_termcap(3) 4, Version 2 rather than in ncurses. External variables are provided for support of certain termcap applications. However, termcap applications' use of those variables is poorly documented, e.g., not distinguish- ing between input and output. In particular, some applica- tions are reported to declare and/or modify ospeed.
curses(3), terminfo(5), putc(3). MirOS BSD #10-current Printed 4.7.2014 3
Generated on 2014-07-04 21:17:45 by $MirOS: src/scripts/roff2htm,v 1.79 2014/02/10 00:36:11 tg Exp $
These manual pages and other documentation are copyrighted by their respective writers;
their source is available at our CVSweb,
AnonCVS, and other mirrors. The rest is Copyright © 2002‒2014 The MirOS Project, Germany.
This product includes material provided by Thorsten Glaser.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.