Cursor commands are stored in the terminal interface variable _csr_cmd[ ]. The cursor command array is currently dimensioned to hold 7 commands. Among these commands are those for turning on and turning off the cursor and setting it to be a block or underline.
To include more cursor commands than those supported in vvtermcap, do the following:
| 1 | Edit vvtermcap to add the new cursor commands. |
| 2 | Increment the value of the #defined constant QCSR_CMDS in vv_sys.h by the number of cursor commands you are adding. QCSR_CMDS is equal to the number of cursor commands and is used to set the maximum size of the _csr_cmd[ ] array. |
| 3 | In vv_main.h, edit the array terminal definition parse table _td_tbl[ ] by adding a TD_DEF structure for each cursor 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 _csr_cmd[ ] array. See _td_tbl[ ] for an example. |
If this cursor command is not supported by Vermont Views, you must use the command appropriately within your application.