In all versions, vv_init() initializes the Vermont Views system. In the terminal-based version, vv_init() also initializes the terminal interface. This is done by first determining the terminal name from the VVTERM or TERM environment variable. Then, the vvtermcap entries for that particular terminal are read and loaded into global variables. The initialized global variables are used for proper operation of the terminal interface.
vv_init() also changes the state of the terminal. Under UNIX, the terminal driver is set to NORMAL attribute, NOECHO, and CBREAK. Under VMS, the terminal driver is set to NOECHO, NOEDIT, and PASTHRU.
Note that vv_init() does not clear the screen, although the terminal initialization string may. If you want to clear the screen before continuing with the Vermont Views application, you must explicitly call vs_clr().
Because Vermont Views changes the state of the terminal driver, every application program must call the Vermont Views function vv_exit() just before returning to the command line. vv_exit() restores the terminal to its original state.
You should get in the habit of always calling vv_exit() before returning from your programs.