*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: has_ic | Section: 3 | Source: Digital UNIX | File: has_ic.3.gz
curs_termattrs(3) Library Functions Manual curs_termattrs(3) NAME curs_termattrs, baudrate, erasechar, erasewchar, has_ic, has_il, killchar, killwchar, longname, term_attrs, termattrs, termname - Rou- tines for querying the Curses environment LIBRARY Curses Library (libcurses.a, libcurses.so) SYNOPSIS #include <curses.h> int baudrate(void); char erasechar(void); int erasewchar(wchar_t *ch); bool has_ic(void); bool has_il(void); char killchar(void); int killw- char(wchar_t *ch); char *longname(void); attr_t term_attrs(void); chtype termattrs(void); char *termname(void); STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: baudrate, erasechar, has_ic, has_il, killchar, longname: XPG4, XPG4-UNIX erasewchar, killwchar, term_attrs, termattrs, termname: XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. DESCRIPTION The baudrate routine returns the output speed of the terminal. The number returned is an integer that represents bits per second (for ex- ample, 9600). The erasechar routine returns the current erase character. The erasewchar routine stores the current erase character in the object pointed to by ch. If no erase character has been defined, the routine fails and the object pointed to by ch is not changed. The has_ic routine returns TRUE if the terminal has insert- and delete- character capabilities; otherwise, the routine returns FALSE. The has_il routine returns TRUE if the terminal has insert- and delete- line capabilities or can simulate them using scrolling regions; other- wise, the routine returns FALSE. Applications might use has_il to find out if it would be appropriate to call scrollok to turn on physical scrolling. The killchar routine returns the current line-kill character. The killwchar routine stores the current line-kill character in the ob- ject pointed to by ch. If no line-kill character has been defined, the routine fails and the object pointed to by ch is not changed. The longname routine returns a pointer to a static area containing a verbose description of the current terminal. The maximum length of a verbose description is 128 characters. The static area containing the description is defined only after an application calls initscr or newterm. The area is overwritten by each call to newterm and is not restored by set_term. Therefore, applications should save the area's value only between calls to newterm if longname is used with multiple terminals. The termattrs and term_attrs routines return the results of a logical OR operation on all video attributes supported by the terminal. The termattrs routine extracts the current terminal's video attributes as defined by the A_ prefix and stored in the chtype data type. The term_attrs routine extracts the current terminal's video attributes as defined by the WA_ prefix and stored in the attr_t data type. These routines are useful when a Curses program needs complete control over the appearance of the screen. If a given terminal does not support a video attribute that an application program is trying to use, Curses may substitute a different video attribute. The termname routine returns the value of the environmental variable TERM (truncated to 14 characters). NOTES The header file curses.h automatically includes the header file stdio.h. RETURN VALUES Upon successful completion, the erasewchar and killwchar routines re- turn OK; otherwise, they return ERR. Return values for other routines are discussed in the DESCRIPTION sec- tion. RELATED INFORMATION Functions: curses(3), curs_attr(3), curs_attr_get(3), curs_initscr(3), curs_outopts(3) Others: standards(5) delim off curs_termattrs(3)

Navigation Options