|
|
HP Data Entry and Forms Management System (VPLUS) Reference Manual: HP 3000 MPE/iX Computer Systems > Appendix G TERMINAL INFORMATION VTURNON/VTURNOFF |
|
VOPENTERM configures the driver and the terminal for block mode access. VCLOSETERM configures the terminal and driver for character mode access. These procedures initialize the terminal in many ways, including clearing the screen image. VTURNON and VTURNOFF reconfigure the terminal and driver but leave the terminal screen image intact. VTURNOFF allows the application to switch momentarily to character mode from block mode without disturbing the screen. A call to VTURNON will reconfigure the terminal back to block mode. An example of such use is an application which performs graphics input/output after the terminal has been opened by VOPENTERM and a form has been displayed using VSHOWFORMF. VTURNOFF can then be called to prepare for graphics operations. A subsequent VTURNON call will switch the application back to VPLUS block mode. The use of VOPENTERM, VCLOSETERM, VTURNON and VTURNOFF provides for a systematic approach to controlling the terminal and driver settings. The recommended practice for programming VPLUS applications is to use only VPLUS procedures to perform terminal input/output operations when in VPLUS. If the application must perform terminal input/output operations using other input/output methods, either VCLOSETERM or VTURNOFF must be used to switch out of VPLUS before doing so. This simple programming guideline assures that the application will be compatible with the different HP3000 drivers and terminals, and improves its maintainability. Turns off VPLUS block mode and enables character mode access without disturbing the terminal screen.
VTURNOFF is used for momentarily switching from VPLUS block mode to character mode. This procedure is designed for use after a terminal has been previously opened by VOPENTERM or after a VTURNON. VTURNOFF reconfigures the terminal and driver for character mode operations without disturbing the screen image on the terminal. The following operations normally performed in VCLOSETERM are not performed in VTURNOFF:
Turns on VPLUS block mode without disturbing the terminal screen.
VTURNON is normally used in an application when the terminal has already been opened by VOPENTERM and VTURNOFF was called to switch out of VPLUS block mode. VTURNON switches the application back to VPLUS block mode without disturbing the image on the terminal screen. After a VTURNON, you must perform a VSHOWFORM. You must also unlock your keyboard. Sending the escape sequence ESC-b unlocks the keyboard programmatically, or depressing the RESET key once also unlocks the keyboard. VTURNON reconfigures the terminal and the driver without performing the following operations, which are usually carried out by VOPENTERM.
Unlike VOPENTERM, VTURNON will not ask you to press the BLOCK MODE key if you are using an HP2640B or HP2644 terminal and the terminal is not on block mode. |
|