Next: , Previous: , Up: The basic curses library   [Contents][Index]


5.2.36 Terminal attributes

Procedure: baudrate

The baudrate routine returns the output speed of the terminal. The number returned is in bits per second, for example 9600, and is an integer. It could return #f if this screen is no longer valid.

Procedure: erasechar

The erasechar routine returns the user’s current erase character. If the terminal is a dumb terminal and has no erase character, it will return #f.

Procedure: has-ic?

The has-ic? routine is true if the terminal has insert- and delete- character capabilities.

Procedure: has-il?

The has-il? routine is true if the terminal has insert- and delete-line capabilities, or can simulate them using scrolling regions. This might be used to determine if it would be appropriate to turn on physical scrolling using scrollok!.

Procedure: killchar

The killchar routine returns the user’s current line kill character. If the terminal has no killchar, it will return #f.

Procedure: longname

The longname routine returns a string that is a verbose description of the current terminal.

Procedure: termattrs

The termattrs function return a logior of all video attributes supported by the terminal using the standard A_XXX constants. The term-attrs function is nearly identical, except that it tests rarely used attributes that might someday having to do with wide characters: A_HORIZONTAL, A_LEFT, A_LOW, A_RIGHT, A_TOP, and A_VERTICAL.

Procedure: termname

The termname routine returns the name of the current terminal, which was set by either initscr or setupterm.


Next: , Previous: , Up: The basic curses library   [Contents][Index]