Previous | Contents | Index |
Sets the characteristics of a terminal. Entering a qualifier changes a characteristic; omitting a qualifier leaves the characteristic unchanged.
SET TERMINAL [device-name[:]]
device-name[:]
Specifies the device name of the terminal. The default is SYS$COMMAND if that device is a terminal. If the device is not a terminal, an error message is displayed.
The SET TERMINAL command modifies specific terminal characteristics for a particular application or overrides system default characteristics. (These defaults are defined at each installation, based on the most common type of terminal in use.) The default characteristics for terminals are listed in Figure DCLII-2. The table extends across two pages to document a range of terminals.The terminal characteristics, local or remote, are determined automatically by the terminal driver for terminals that have the modem characteristic enabled. These characteristics are not affected by the SET TERMINAL command. For example, when you successfully dial in to an OpenVMS system processor, you establish your terminal as remote. When you hang up, the terminal characteristic is set back to local.
The set of terminals supported by the OpenVMS system includes a set of VT100 family terminals that support special DIGITAL ANSI characteristics and escape sequences. For a description of these special characteristics and escape sequences, see the HP OpenVMS I/O User's Reference Manual.
Figure DCLII-2 Default Characteristics for Terminals
/ADVANCED_VIDEO
/NOADVANCED_VIDEO
Controls whether the terminal has advanced video attributes and is capable of 132-column video. If the terminal width is set to 132 columns and you specify the /ADVANCED_VIDEO qualifier, the terminal page limit is set to 24 lines. If you specify the /NOADVANCED_VIDEO qualifier, the terminal page limit is set to 14 lines./ALTYPEAHD
Causes the terminal driver to create a permanent, alternate type-ahead buffer. The system parameter TTY_ALTYPEAHD determines the size of the type-ahead buffer.To enable /ALTYPEAHD, you must also set the qualifier /TYPE_AHEAD.
You should specify SETTERMINAL/PERMANENT/ALTYPEAHD in SYS$STARTUP:SYSTARTUP_VMS.COM for those communication lines that require this capability.
To use this feature interactively, specify SET TERMINAL/PERMANENT/ALTYPEAHD. This specification is effective at your next login.
/ANSI_CRT (default)
/NOANSI_CRT
Controls whether the terminal conforms to ANSI CRT programming standards. Because ANSI standards are a proper subset of the DEC_CRT characteristics, the default for all VT100 family terminals is /ANSI_CRT./APPLICATION_KEYPAD
Specifies that the keypad is to be set to application keypad mode, which allows you to enter DCL commands defined with the DEFINE/KEY command. By default, the terminal is set to numeric keypad mode./AUTOBAUD
/NOAUTOBAUD
Controls whether the terminal baud rate is set when you log in and sets the default terminal speed to 9600. You must press Return two or more times at intervals of at least 1 second for the baud rate to be determined correctly. If you press a key other than Return, the /AUTOBAUD qualifier may detect the wrong baud rate. If this happens, wait for the login procedure to time out before continuing. The /AUTOBAUD qualifier must be used with the /PERMANENT qualifier.The valid baud rates are as follows:
50 150 1800 4800 38400 75 300 2000 7200 57600 110 600 2400 9600 76800 134 1200 3600 19200 115200/BACKSPACE=keyword
Controls how the system responds to the backspace key (Ctrl/H) in line editing mode. There are two possible keywords:
- BACKSPACE (default) --- The terminal driver returns the user to the beginning of the line. (This is the traditional way OpenVMS has always worked.)
- DELETE --- The terminal driver interprets the backspace key as a delete character instruction.
Note the following exceptions:
- If the terminal is set in PASSALL or PASTHRU mode, the backspace key is not interpreted as a delete character instruction.
- If the user issues an IO$_READVBLK with IO$M_NOFILTR or IO$_READPBLK, the backspace key is not interpreted as a delete character instruction.
You can use SYSGEN to make /BACKSPACE=DELETE the default for all terminals by setting the system parameter TTY_DEFCHAR3 to 16.
If the default is set to DELETE, the user can still go to the start of a line by pressing F12 or by entering the following sequence: Ctrl/V Ctrl/H Ctrl/H.
If you use SET HOST, both the local node and the remote node must be capable of responding to your definition of the BACKSPACE key.
/BLOCK_MODE
/NOBLOCK_MODE
Controls whether block mode transmission, local editing, and field protection are performed./BRDCSTMBX
/NOBRDCSTMBX
Controls whether broadcast messages are sent to an associated mailbox if one exists./BROADCAST (default)
/NOBROADCAST
Controls whether reception of broadcast messages (such as those issued by MAIL and REPLY) is enabled. Specify the /NOBROADCAST qualifier when you are using a terminal as a noninteractive device or when you do not want special output to be interrupted by messages. Use the SET BROADCAST command to exclude certain types of messages from being broadcast, rather than eliminating all messages./COLOR
Sets the ANSI_COLOR terminal characteristic and identifies the terminal as capable of supporting the ANSI color escape sequences./COMMSYNC
/NOCOMMSYNC (default)
Allows connection of asynchronous printers and other devices to terminal ports, using standard modem control signals as flow control. Transmission to the device stops if either data set ready (DSR) or clear to send (CTS) EIA modem control signals are dropped. Transmission resumes when both signals are present.The /COMMSYNC qualifier and the /MODEM qualifier are mutually exclusive.
The COMMSYNC feature has the following limitations:
- Cannot be used on LAT ports
- Can only be used on ports with full modem control
- Should not be used in conjunction with Xon/Xoff flow control (the port may hang)
Caution
The /COMMSYNC qualifier should never be set on a line with a modem that is intended for interactive use. The qualifier disables the modem terminal characteristic that disconnects a user process from the terminal line in case of a modem phone line failure. With the /COMMSYNC qualifier enabled, the next call on the terminal line could be attached to the previous user's process. Security administrators should be aware that the characteristic should not be used on interactive terminal ports. In addition, the /COMMSYNC qualifier is not supported on a port connected to a LAT line./CRFILL[=fill-count]
Generates the specified number of null characters after each carriage return before transmitting the next meaningful character (to ensure that the terminal is ready for reception). The value must be an integer in the range 0 to 9. The default is the /CRFILL=0 qualifier./DEC_CRT[=(value1,value2,value3)]
/NODEC_CRT[=(value1,value2,value3)]
Controls whether the terminal conforms to DIGITAL VT100-, VT200-, VT300-, VT400-, or VT500-family standards and supports the minimum standards, including the additional DIGITAL escape sequences.You can specify one of the following values:
1 (default) Requests that the DEC_CRT terminal characteristic be set. 2 Requests that the DEC_CRT2 terminal characteristic be set. 3 Requests that the DEC_CRT3 terminal characteristic be set. A level 3 terminal supports the following additional features:
- A status line (line 25, at the bottom of the screen)
- The ISO Latin1 character set
- Terminal state interrogation (describes what state your terminal is in)
4 Requests that the DEC_CRT4 terminal characteristic be set. A level 4 terminal supports the following additional features:
- Extended keyboard
- Key position mode
- Secure reset
- Novice mode
- Selective erase
- On-line transaction processing (OLTP) features:
- Page memory
- Rectangular editing
- Text macros
- Data integrity reports
Note that DEC_CRT2, DEC_CRT3, and DEC_CRT4 are supersets of DEC_CRT. Clearing DEC_CRT causes DEC_CRT2, DEC_CRT3, and DEC_CRT4 to be cleared. Similarly, setting DEC_CRT4 causes all subsets of DEC_CRT4 (including ANSI_CRT) to be set.
/DEVICE_TYPE=terminal-type
Informs the system of the terminal type and sets characteristics according to the device type specified. You can specify any of the following terminal types:
UNKNOWN
FT1--FT8
LA12
LA34
LA36
LA38 LA100
LA120
LA210
LN01K
LN03
LQP02 PRO_SERIES
VT05
VT52
VT55
VT100
VT101 VT102
VT105
VT125
VT131
VT132
VT173 VT200
VT300
VT400
VT500The default characteristics for the VT100-, VT102-, and VT125-series terminals are as follows:
/ADVANCEDVIDEO /NOALTYPEAHD 1 /ANSI_CRT /NOAUTOBAUD /NOBLOCK_MODE /NOBRDCSTMBX /BROADCAST /CRFILL=0 /ECHO /NOEIGHT_BIT /NOESCAPE /NOFORM /FULLDUP /NOHOSTSYNC /LFFILL=0 /LOWERCASE /NODMA /PAGE=24 /NOPARITY /NOPASTHRU /NOREADSYN /SPEED=9600 /TAB /TTSYNC /TYPE_AHEAD /WIDTH=80 /WRAP
The terminal types and characteristics that can be set are listed in Figure DCLII-2.
Controls whether the terminal modem is hung up when you log out.
The SET TERMINAL/INQUIRE command works correctly on DIGITAL supplied VT100 and later terminals. Some personal computer terminal emulators may not work correctly, because they do not correctly emulate all VT100 escape sequences. HP recommends that users who experience problems with these terminal emulators contact the terminal emulator supplier. |
You can include the SET TERMINAL/INQUIRE command in your LOGIN.COM file to detect the terminal type automatically.
If you specify /INQUIRE=OLD, OpenVMS sets the terminal window to 24 lines by 80 columns and ignores the real terminal size. (This is the behavior of the SET TERMINAL/INQUIRE command prior to OpenVMS Version 6.2.)
This qualifier clears the type-ahead buffer. If the response sequence is unrecognized, no action message or error message is displayed. The /INQUIRE qualifier should be used only on DIGITAL terminals; however, the LA36 and VT05 terminals do not support this feature. |
When logging in to terminals with the LOCAL_ECHO characteristic, the OpenVMS system has no control over the echoing of passwords. |
Make sure that you spell both these qualifiers exactly as they appear in the text.
Sets characteristics on a permanent basis, that is, over terminal sessions; however, the characteristics revert to their initial values if the system is halted and restarted. Use in a system startup file to establish characteristics for all terminals on the system.
SET TERMINAL/READSYNC should not be used on LAT terminal lines. Setting this characteristic may cause unexpected results. |
The default is the /NOREADSYNC qualifier; the system does not use the Ctrl/S and Ctrl/Q functions to control reads to the terminal. The /READSYNC qualifier is useful for certain classes of terminals that demand synchronization or for special-purpose terminal lines where data synchronization is appropriate.
Controls whether the Break key on the terminal logs out the current process (except on a virtual terminal). With the /SECURE_SERVER qualifier in effect, pressing the Break key when there is no current process initiates the login sequence. With the /NOSECURE_SERVER qualifier in effect, the break is ignored.
On terminals with the AUTOBAUD and SECURE_SERVER characteristics, pressing the Break key disconnects the current process, but is not required to start a new login sequence. However, when the NOAUTOBAUD characteristic is set, the SECURE_SERVER characteristic requires a break to initiate a new login sequence.
Controls whether the /SPEED qualifier can be used to change the terminal speed.
Not all terminals support different input and output baud rates. For specific information on baud rates for your terminal, consult the manual for that terminal.
The default transmission rates are installation dependent.
The valid values for input and output baud rates are as follows:
50 150 1800 4800 38400 75 300 2000 7200 57600 110 600 2400 9600 76800 134 1200 3600 19200 115200 |
Determines whether the terminal requires that a system password be entered before the Username: prompt.
When you specify the /NOTYPE_AHEAD qualifier, the terminal accepts input only when a program or the system issues a read to the terminal, such as for user input at the DCL prompt ($). When you specify the /TYPE_AHEAD qualifier, the amount of data that can be accepted is governed by the size of the type-ahead buffer. That size is determined by system generation parameters.
If the specified width on an ANSI terminal is 132, the screen is set to 132-character mode. If the terminal does not have advanced video option (AVO), the page length limit is set to 14 lines.
#1 |
---|
$ SET TERMINAL/DEVICE=VT102 |
In this example, the SET TERMINAL command establishes the current terminal as a VT102 terminal and sets the default characteristics for that terminal type.
#2 |
---|
$ SET TERMINAL/WIDTH=132/PAGE=60/NOBROADCAST $ TYPE MEMO.DOC . . . $ SET TERMINAL/DEVICE=LA36 |
In this example, the first SET TERMINAL command indicates that the width of terminal lines is 132 characters and that the size of each page is 60 lines. The /NOBROADCAST qualifier disables the reception of broadcast messages while the terminal is printing the file MEMO.DOC. The next SET TERMINAL command restores the terminal to its default state.
Previous | Next | Contents | Index |