Chapter 8. Terminals, keyboard, mouse, localization

8.1. Terminals

CLIP applications are able to work with all kind of terminals and emulators. Terminal abilities descriptions are available at terminfo database or (if environment variable TERMCAP is set) at the file TERMCAP is indicating on. On addition to this descriptions there are some extended possibilities to indicate for CLIP application some special capabilities of terminal. These descriptions are in directory $CLIPROOT/term and looking as

file term/linux-stelnet
# to work with description of linux terminal in terminfo
# whether yielding scan-codes instead of ansi-codes terminal ability;
# options are: terminal, ioctl, no
# ESC-sequence to switch scan-codes transfer mode on
# ESC-sequence to switch scan-codes transfer mode off
# keyboard layout for keyboard driver of CLIP application
# charset used by CLIP VM at run time // unicode - file
# charset used by client for display // unicode - file
# single pseudo-graphics symbols
# double pseudo-graphics symbols
# color translation table

All "advanced" terminal names have to be registered in your terminfo/termcap database.

Linux standard unicode-tables located in /usr/share/consoletrans directory are used for translation of terminal output.

Necessary unicode-tables have to be unpacked and put into $CLIPROOT/charsets directory. CLIP distribution contains some unicode-tables also.