X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fcurs_terminfo.3x.html;h=3a9dee267ba2285fbfc34cf772ed327b31acebca;hp=51e41701dab1f8120617499df0508d1d12cba2d6;hb=761e4f0825b330e970558e82a4bd638383914429;hpb=ca276baf720e3a44721b9e18955d3f546955c6c8 diff --git a/doc/html/man/curs_terminfo.3x.html b/doc/html/man/curs_terminfo.3x.html index 51e41701..3a9dee26 100644 --- a/doc/html/man/curs_terminfo.3x.html +++ b/doc/html/man/curs_terminfo.3x.html @@ -1,7 +1,7 @@ - +
@@ -48,9 +48,9 @@del_curterm, mvcur, putp, restartterm, set_curterm, - setterm, setupterm, tigetflag, tigetnum, tigetstr, tparm, - tputs, vid_attr, vid_puts, vidattr, vidputs - curses - interfaces to terminfo database + setterm, setupterm, tigetflag, tigetnum, tigetstr, tiparm, + tparm, tputs, vid_attr, vid_puts, vidattr, vidputs - + curses interfaces to terminfo database@@ -68,12 +68,13 @@ int putp(const char *str); int vidputs(chtype attrs, int (*putc)(int)); int vidattr(chtype attrs); - int vid_puts(attr_t attrs, short pair, void *opts, int (*putc)(char)); + int vid_puts(attr_t attrs, short pair, void *opts, int (*putc)(int)); int vid_attr(attr_t attrs, short pair, void *opts); int mvcur(int oldrow, int oldcol, int newrow, int newcol); int tigetflag(char *capname); int tigetnum(char *capname); char *tigetstr(char *capname); + char *tiparm(const char *str, ...); @@ -180,6 +181,10 @@ ters pi. A pointer is returned to the result of str with the parameters applied. + tiparm is a newer form of tparm which uses <stdarg.h> + rather than a fixed-parameter list. Its numeric parame- + ters are integers (int) rather than longs. + The tputs routine applies padding information to the string str and outputs it. The str must be a terminfo string variable or the return value from tparm, tgetstr, @@ -253,23 +258,31 @@ Routines that return pointers always return NULL on error. - X/Open defines no error conditions. In this implementa- + X/Open defines no error conditions. In this implementa- tion del_curterm - returns an error if its terminal parameter is + returns an error if its terminal parameter is null. + putp calls tputs, returning the same error-codes. + restartterm returns an error if the associated call to se- tupterm returns an error. setupterm - returns an error if it cannot allocate enough + returns an error if it cannot allocate enough memory, or create the initial windows (stdscr, - curscr, newscr). Other error conditions are + curscr, newscr). Other error conditions are documented above. + tputs + returns an error if the string parameter is + null. It does not detect I/O errors: X/Open + states that tputs ignores the return value of + the output function putc. +
@@ -283,9 +296,9 @@
- The function setterm is not described in the XSI Curses - standard and must be considered non-portable. All other - functions are as described in the XSI curses standard. + The function setterm is not described by X/Open and must + be considered non-portable. All other functions are as + described by X/Open. setupterm copies the terminal name to the array ttytype. This is not part of X/Open Curses, but is assumed by some @@ -293,29 +306,38 @@ In System V Release 4, set_curterm has an int return type and returns OK or ERR. We have chosen to implement the - XSI Curses semantics. + X/Open Curses semantics. In System V Release 4, the third argument of tputs has the type int (*putc)(char). - The XSI Curses standard prototypes tparm with a fixed num- - ber of parameters, rather than a variable argument list. - This implementation uses a variable argument list. - Portable applications should provide 9 parameters after - the format; zeroes are fine for this purpose. - - XSI notes that after calling mvcur, the curses state may - not match the actual terminal state, and that an applica- - tion should touch and refresh the window before resuming - normal curses calls. Both ncurses and System V Release 4 - curses implement mvcur using the SCREEN data allocated in - either initscr or newterm. So though it is documented as - a terminfo function, mvcur is really a curses function - which is not well specified. - - XSI states that the old location must be given for mvcur. - This implementation allows the caller to use -1's for the - old ordinates. In that case, the old location is unknown. + At least one implementation of X/Open Curses (Solaris) re- + turns a value other than OK/ERR from tputs. That returns + the length of the string, and does no error-checking. + + X/Open Curses prototypes tparm with a fixed number of pa- + rameters, rather than a variable argument list. This im- + plementation uses a variable argument list, but can be + configured to use the fixed-parameter list. Portable ap- + plications should provide 9 parameters after the format; + zeroes are fine for this purpose. + + In response to comments by Thomas E. Dickey, X/Open Curses + Issue 7 proposed the tiparam function in mid-2009. + + X/Open notes that after calling mvcur, the curses state + may not match the actual terminal state, and that an ap- + plication should touch and refresh the window before re- + suming normal curses calls. Both ncurses and System V Re- + lease 4 curses implement mvcur using the SCREEN data allo- + cated in either initscr or newterm. So though it is docu- + mented as a terminfo function, mvcur is really a curses + function which is not well specified. + + X/Open states that the old location must be given for + mvcur. This implementation allows the caller to use -1's + for the old ordinates. In that case, the old location is + unknown. Extended terminal capability names, e.g., as defined by tic -x, are not stored in the arrays described in this @@ -325,7 +347,8 @@
curses(3x), curs_initscr(3x), curs_kernel(3x), curs_term- - cap(3x), putc(3), terminfo(5) + cap(3x), curs_variables(3x), term_variables(3x), putc(3), + terminfo(5)