Adding Screen Commands

The screen commands are for the screen editing functions (such as clear screen, erase to end of line, etc.) that may be implemented by the terminal. Vermont Views does not require a terminal to possess any editing functions. Screen commands are stored in the terminal interface variable _scr_cmd[ ]. It is dimensioned to hold one command (the clear screen command). To include more screen commands than those supported in vvtermcap, do the following:

1 Edit vvtermcap to add the new screen commands.
2 Increment the value of the #defined constant QSCR_CMDS in vv_sys.h by the number of screen commands you are adding. QSCR_CMDS is equal to the number of screen commands and is used to set the maximum size of the _scr_cmd[ ] array.
3 In vv_main.h, edit the array terminal definition parse table _td_tbl[ ] by adding a TD_DEF structure for each screen command you add. Add these structures to the end of the array. For the pointer to the terminal interface variable to hold the commands found in vvtermcap, specify a pointer to one of the new elements in the _scr_cmd[ ] array. See _td_tbl[ ] for an example.

If this screen command is not supported by Vermont Views, you must use the command appropriately within your application.


Home Contents Previous Next