TUIPEER User Guide

Terminfo

Tuipeer uses terminfo for screen and keyboard support. The exact key used for a given function is determined by the terminfo database and your terminal type. Your terminal type is determined by the "TERM" environment variable. Consult your Unix documentation or guru for more information. Function keys will be referred to by their short terminfo name - the name you would use for input to "tic" (the TermInfo Compiler). These name all begin with 'k'. For instance khome is the HOME key and kHOME is the SHIFT-HOME key. If there is no HOME key on your keyboard, some arbitrary key sequence should be defined in terminfo to substitute for HOME, or else no HOME key will be available.

Font and Color Mapping

Colors are mapped to black, grey, and white.

Foreground/Background colors are mapped to terminal attributes. Terminal attributes used to represent color are normal, dim, reverse-normal, and reverse-dim.

Foreground  Background  Attribute
black       black       normal
black       white       reverse
black       grey        reverse-dim
grey        black       dim
grey        white       reverse-dim
grey        grey        reverse-dim
white       black       normal
white       white       normal
white       grey        reverse-dim
Some font attributes also map to terminal attributes:

Window Navigation

Java GUI applications display one or more Windows, Frames, and Dialogs. Together these are called "top level windows". Windows are unframed. Frames are framed. Dialogs are framed and attached to a parent Window. TUIpeer users navigate between top level windows be using KEY_SELECT to popup a local selection window and selecting the desired window by title. Users close a window by pressing KEY_F1. The next TUIPeer version will use KEY_CLOSE to close windows and KEY_NEXT and KEY_PREV in addition to KEY_SELECT to navigate top level windows.

Keyboard Mapping

Mapping of terminfo keys to local functions and Java virtual keycodes.