RCRTMODEL Variable

Qedit 5.7 for HP-UX

Home Previous Next


RCRTMODEL Variable

If you use either an HP terminal (e.g., 239x and 700/9x series) or a terminal emulator such as Reflection, you can get Qedit to identify the terminal type automatically by setting an environment variable. If you use a VT terminal, you should either not set the variable at all or set it to zero.

If you set the environment variable RCRTMODEL to 2 and export it before running Qedit, Qedit can identify your terminal, Reflection emulator or Qcterm emulator automatically. This includes the terminal ID number such as 70092 or 2392 and the Reflection or Qcterm version number such as 430. For Reflection, Qcterm and 700/9x terminals, Qedit also determines how many columns of display memory you have set originally. On a PC with Reflection, Qedit detects whether your combination of VGA adaptor and Reflection version is likely to switch into 132-column mode whenever more than 80 columns of display memory are requested.

Qcterm emulates a 700/92 terminal but can display 200 columns as well as 80 or 132 columns normally available on a 700/92 terminal.

export RCRTMODEL=2 {sh/ksh}

/opt/robelle/bin/qedit
Qedit/UX. Copyright Robelle Solutions Technology Inc. 1977-2000.

qux/verify visual {e.g., Crt=7009,Col=132}

Qedit takes advantage of any features that it finds, such as widening display memory, enabling wordwrap if you have done Set Vis Wordwrap On, enabling Limited-Immediates in block-mode, resetting display memory to the width it had at startup, etc.

Instead of setting RCRTMODEL to 2, you can set it to the actual terminal ID number, such as 2392. RCRTMODEL can have any of these values:

Value Terminal
0 Assume that you are using a 2392-style HP terminal
1 Not using an HP terminal, don't check it
2 Interrogate the terminal to identify it
1234 This terminal or emulator is not fully-compatible with an HP terminal
2392,etc. This is a newer HP terminal with labels
2393/2397 This terminal can have up to 160 columns of display
7009 A 700/9x terminal with 132-column ability

You would also set the RPCVERSION and RCRTWIDTH variables to describe the rest of your terminal's attribute. When you use rcrtmodel=2, you don't set RPCVERSION or RCRTWIDTH. Qedit does not update your environment variables with the identity that it finds since a child process cannot change the parent's environment on HP-UX.

More:

Type 1234 Terminal or Emulator


Home Previous Next