The SET TERMINAL Command

Kermit 95's SET TERMINAL and related commands. These commands can be issued at the K-95> prompt in the Command window, or from a command or initialization file, to change most aspects of the terminal emulator.
SET BELL { AUDIBLE { BEEP, SYSTEM-SOUNDS }, VISIBLE, NONE }
This command tells how bell (beep) characters / noises should be sounded or displayed. VISIBLE means to flash the screen rather than making a noise. AUDIBLE means to make a noise, which can be either the standard "beep", or else "System sounds" that give you three different noises for "information", "warning", and "error".

SET COMMAND COLOR foreground-color background-color
Like SET TERMINAL COLOR, except for the Command screen. This command lets you choose the fore- and background colors of the Command screen. See SET TERMINAL COLOR , or type "set command color ?", for a list of colors to choose from. Example: "set command color black white" for black letters on a white background.

SET TERMINAL TYPE { ANSI, TTY, VT52, VT100, VT102, VT220, VT320, ... }
Choose the type of terminal that Kermit should emulate in the Terminal window. CLICK HERE for a complete list. If you choose an ANSI type, the appropropriate coloration, character set, and screen size are chosen for you automatically.

SET TERMINAL ANSWERBACK { OFF, ON, }
Disables/enables the ENQ/Answerback sequence, which is:

  K-95 800201 VT320<CR>

where VT320 is the current terminal emulation, and <CR> is a carriage return. 800201 is the Kermit software version number (which changes from one release to the next). When SET TERM ANSWERBACK is ON, this message is sent automatically by Kermit 95 when a Ctrl-E is received. TERM ANSWERBACK is OFF by default.

SET TERMINAL ANSWERBACK MESSAGE text
Appends the text to the standard answerback message, separated by an underscore.

SET TERMINAL ANSWERBACK UNSAFE-MESSAGE text
Replaces the standard answerback message by text. NOT RECOMMENDED because this can be a SECURITY RISK. If you want to use this option, you must spell UNSAFE-MESSAGE all the way out -- no abbreviations.

SET TERMINAL APC { OFF, ON, UNCHECKED }
Controls execution of Application Program Commands (APCs) sent by the host while Kermit-95's terminal screen is active. ON allows execution of "safe" commands and disallows obviously dangerous commands such as DELETE, RENAME, OUTPUT, and RUN. OFF prevents execution of APCs. UNCHECKED allows execution of all commands. OFF is the default. See Section 3.1 of the CKERMIT.UPD file for a full explanation. APCs are not available in all terminal types.

SET TERMINAL ARROW-KEYS { APPLICATION, CURSOR }
Sets the mode for the arrow keys during VT terminal emulation so that they send the "right stuff" when pressed. Normally the host application should put them in the right mode; use this command to force the arrow keys into the desired mode when they do not seem to work with your host application. CLICK HERE for a technical explanation.

SET TERMINAL ATTRIBUTE { BLINK, DIM, PROTECTED, REVERSE, UNDERLINE } { ON, OFF }
Determines whether real Blinking, Reverse, and Underline are used in the terminal display. When BLINK is turned OFF, reverse background intensity is used. When REVERSE and UNDERLINE are OFF, the colors selected with SET TERMINAL COLOR { REVERSE, UNDERLINE } are used instead. This command affects the entire current screen and the entire terminal scrollback buffer.

When BLINK is ON, true blinking is done. But due to limitations of console mode, true underlining is simulated by reversing the intensity of the background color. If you turn BLINK OFF while UNDERLINE is ON, then, because BLINK is now represented by reversing the intensity of the background color, blink and underline would look the same, so UNDERLINE reverts to OFF. (This will be remedied in the full-GUI version, where true underlining can be done.)

SET TERMINAL ATTRIBUTE PROTECTED { BOLD, DIM, INVISIBLE, NORMAL, REVERSE, ... }
Tells how protected fields should be shown.

SET TERMINAL AUTODOWNLOAD { ON, OFF, KERMIT options, ZMODEM options }
Tells whether Kermit and ZMODEM download initiations should be recognized during terminal emulation (and INPUT command execution). ON, the default, means they are. This feature allows Kermit 95 to switch immediately into Kermit or ZMODEM receive mode and then switch back to terminal emulation automatically when the transfer is finished. This command also applies to automatic uploading when using the Kermit protocol (or more precisely, to automatic Kermit server activation. Special options can be specified separately for Kermit and ZMODEM protocols:

C0-CONFLICT { IGNORED-BY-EMULATOR, PROCESSED-BY-EMULATOR }
How C0 control characters (such as Ctrl-A or Ctrl-X) are treated by the terminal emulator when they have conflicting interpretations. For example, in DG or Wyse emulation, a Ctrl-A or Ctrl-X starts a host-directed print operation, but Ctrl-A is also the start of a Kermit packet and Ctrl-X is also the start of a ZMODEM packet. PROCESSED-BY-EMULATOR is the default C0-CONFLICT action. NOTE: There are no conflicts in VT or ANSI emulation.

DETECTION { PACKET, STRING }
The autodownload detection method for this protocol: PACKET (i.e. a valid Kermit or Zmodem packet), or STRING -- that is, a specific string of characters. The default detection method is PACKET.

STRING string
When SET TERM AUTO { KERMIT, ZMODEM } DETECTION STRING is elected, this command specifies the string that triggers automatic entry into file reception mode for the given protocol. Examples (showing the defaults for each protocol):

  SET TERM AUTO ZMODEM rz\13
  SET TERM AUTO KERMIT READY TO SEND...

SET TERMINAL AUTOPAGE { ON, OFF }
AUTOPAGE mode is used on Wyse and Televideo terminals. AUTOPAGE mode causes the cursor to move to the top of the next page of terminal memory when it scrolls off the bottom of the current page. In K95, it moves the cursor to the top line from the bottom since K95 only supports a single page of terminal memory.

SET TERMINAL AUTOSCROLL { ON, OFF }
AUTOSCROLL mode is used on Televideo terminals when the size of a page of terminal memory is larger than the view screen.

SET TERMINAL BELL { AUDIBLE, VISIBLE, NONE }
Specifies how Control-G (bell) characters are handled. AUDIBLE means a beep is sounded; VISIBLE means the screen is flashed momentarily. This command has been superseded by SET BELL, which applies also to the Command screen.

SET TERMINAL BYTESIZE { 7, 8 }
To use 7- or 8-bit terminal characters between Kermit 95 and the other computer or service in the Terminal screen. NOTE: To use 8-bit characters, you must not have PARITY set to anything other than NONE. SET PARITY NONE is the default.

SET TERMINAL CHARACTER-SET remote-set
Shortcut for SET TERMINAL LOCAL-CHARACTER-SET default; SET TERMINAL REMOTE-CHARACTER-SET remote-set

SET TERMINAL CODE-PAGE nnn
This command can not be used in Windows 95. In OS/2 and Windows NT, it actually loads the given code page into your session. Make sure to also give a SET TERMINAL LOCAL-CHARACTER-SET command to match.

SET TERMINAL COLOR screen-part foreground-color background-color
Choose the fore- and background colors for the designated screen part. Screen parts are:

BORDER
Screen border, OS/2 only (only one color can be given here, not two as for the other screen parts).

DEBUG-TERMINAL
Debugging screens (in which control characters and escape sequences are displayed graphically).

HELP-TEXT
Popup help screens

REVERSE-VIDEO
Colors to be substituted when the host puts the terminal into reverse video mode (fore- and background colors switched). NOT RECOMMENDED because this can cause numerous distinctions of coloration and highlighting to be lost in reverse video.

STATUS-LINE
The Terminal screen status line.

SELECTION
Mouse selections

TERMINAL-SCREEN
The main terminal screen.

UNDERLINED TEXT
Underlined text, which must be simulated with color due to restrictions of the Console driver.

Colors are:

BLACK
BLUE
GREEN
CYAN
RED
MAGENTA
BROWN
LIGHTGRAY
DARKGRAY
LIGHTBLUE (high intensity)
LIGHTGREEN (high intensity)
LIGHTCYAN (high intensity)
LIGHTRED (high intensity)
LIGHTMAGENTA (high intensity)
YELLOW (high intensity)
WHITE (high intensity)

We do not recommend you use any of the high-intensity colors for the TERMINAL-SCREEN screen part (the main terminal screen), since this can confuse matters when the host sends highlighting escape sequences.

LIGHT can be abbreviated with just L, for example LBLUE. DARK can be abbreviated by D.

SET TERMINAL COLOR ERASE { CURRENT-COLOR, DEFAULT-COLOR }
Determines whether the current color as set by the host or the default color as set by the user (SET TERMINAL COLOR TERMINAL) is used to clear the screen when erase commands are received from the host.

SET TERMINAL COLOR RESET-ON-ESC[0m { CURRENT-COLOR, DEFAULT-COLOR }
Determines whether the current color or the default color is used after an ESC [ 0 m ("reset attributes") command sequence is received from the host. For all emulations except for AT386 and SCOANSI, the default value is CURRENT-COLOR, meaning that ESC [ 0 m does not affect coloration. DEFAULT-COLOR means that ESC [ 0 m changes to your current SET TERMINAL COLOR TERMINAL color.

SET TERMINAL CONTROLS { 7, 8 }
Applies to VT220/320 and Wyse 370 emulation, as well as to AT386, SCOANSI, HFT, AIXTERM, and other advanced ANSI X3.64 based emulations. Determines whether function keys, arrow keys, etc, that generate escape sequences should send 8-bit control characters (such as CSI, 155 decimal) or their 7-bit equivalents (such as ESC [ instead of CSI). Default is 7.

SET TERMINAL CR-DISPLAY { CRLF, NORMAL }
Specifies how incoming Carriage Return (CR) characters are displayed on your screen. NORMAL (the default) means a CR is displayed as itself. CRLF means a CR is displayed as a carriage return and a line feed (LF). Use CRLF when incoming lines of text write over each other, for example when two two Kermit programs are connected to each other in "chat" mode. Note: this is like SET TERMINAL NEWLINE-MODE, but in the other direction.

SET TERMINAL CURSOR { FULL, HALF, UNDERLINE } [ { NOBLINK, ON, OFF } ]
Selects cursor style and turns the cursor on unless the trailing keyword OFF is included, in which case the cursor is turned off. If the trailing keyword NOBLINK is included, the the specified style of cursor is enabled but does not blink.

SET TERMINAL DEBUG { ON, OFF }
Controls terminal session debugging. You can also use Alt-D (or whatever other key that \Kdebug is assigned to) in the Terminal screen to toggle session debugging on and off.

SET TERMINAL DG-UNIX-MODE { ON, OFF }
Specifies whether the Data General emulations should accept control sequences in Unix compatible format or in native DG format. The default is OFF, DG format.

SET TERMINAL ECHO { LOCAL, REMOTE }
Specifies which side does the echoing during terminal connection. If every character you type appears twice, then "set term echo remote". If you do not see the characters you type, then "set term echo local".

SET TERMINAL ESCAPE-CHARACTER { ENABLED, DISABLED }
Since we can use Alt-key or other non-ASCII keys or combinations in K-95 to escape back, etc, we don't necessarily need to reserve one ASCII control character for that purpose, even though we do by default (Ctrl-]) for compatibility with MS-DOS Kermit. Use SET TERM ESC DISABLED to disable the CONNECT-mode escape character, so you can type all ASCII control characters without having to double any of them.

SET TERMINAL FONT { CP437, CP850, CP852, CP862, CP866, DEFAULT } (OS/2 only)
CP437 - Original PC code page
CP850 - "Multilingual" (West Europe) code page
CP852 - East Europe Roman Alphabet code page (for Czech, Polish, etc)
CP862 - Hebrew code page
CP866 - Cyrillic (Russian, Belorussian, and Ukrainian) code page
Loads a soft into the video adapter for use during terminal emulation. Use this command when your OS/2 system does not have the desired code page. Can be used only in full-screen sessions. Also see SET TERMINAL CODE-PAGE and SET TERMINAL REMOTE-CHARACTER-SET.

SET TERMINAL HEIGHT number
Changes the number of rows (lines) to use during terminal emulation, not counting the status line.

SET TERMINAL IDLE-TIMEOUT number
Sets the limit on idle time in CONNECT mode to the given number of seconds. 0 (the default) means no limit.

SET TERMINAL IDLE-ACTION { EXIT, HANGUP, OUTPUT [ text ], RETURN }
Specifies the action to be taken when a CONNECT session is idle for the number of seconds given by SET TERMINAL IDLE-TIMEOUT. The default action is to RETURN to command mode. EXIT exits from Kermit; HANGUP hangs up the connection, and OUTPUT sends the given text to the host without leaving CONNECT mode; if no text is given a NUL (0) character is sent.

SET TERMINAL IDLE-ACTION { TELNET-NOP, TELNET-AYT }
(Telnet connections only) Sends the indicated Telnet protocol message: No Operation (NOP) or "Are You There?" (AYT).

SET TERMINAL KDB-FOLLOWS-GL/GR { ON, OFF }
Specifies whether or not the keyboard character set should follow the active GL and GR character sets. This feature is OFF by default and should not be used unless it is specificly required by the host application.

SET TERMINAL KEY terminal-type-or-keyboard-mode -
[ /LITERAL ] keycode [ definition-string ]
Like SET KEY, but specific to the given terminal type or keyboard mode. /LITERAL means that no character-set translations should be applied when using this key.

SET TERMINAL KEYBOARD-MODE { NORMAL, EMACS, HEBREW, RUSSIAN, WP }
Selects the named special keyboard mode (WP = Word Perfect).

SET TERMINAL KEYPAD-MODE { APPLICATION, NUMERIC }
When emulating terminals that have a numeric keypad, use this command to force the keypad into the proper mode, in case the host application did not do this with an escape sequence, as it should have. The situation is similar to that with the arrow keypad.

SET TERMINAL LOCAL-CHARACTER SET name
This command tells Kermit 95 which character set used by the session (screen, window, etc) on your PC in which Kermit 95 is running. Kermit 95 translates between this character set and the TERMINAL REMOTE-CHARACTER-SET during terminal emulation. The local character set is a PC Code Page (the letters "cp" followed by a number; character sets that are not code pages can not be used as local character sets unless you know something we don't). In any case, you normally should not need to give this command, since (a) Kermit 95 probably knows what your PC code page is, and (b) you can't change it anyway. In Windows NT, this command affects only keyboard-to-host translation incoming material is translated to UNICODE.

SET TERMINAL LINE-SPACING number
GUI only. The number can be from 1 to 3, and can include a fractional part, e.g. 1.25. 1 is the default and the minimum line spacing. Any other number tells Kermit 95 add the specified amount of spacing between screen lines.

SET TERMINAL LOCKING-SHIFT { OFF, ON }
Tells Kermit 95 whether to send Shift-In/Shift-Out (Ctrl-O and Ctrl-N) to switch between 7-bit and 8-bit characters sent during terminal emulation over 7-bit connections. Explained in Using C-Kermit, Chapters 8 and 16. OFF by default.

SET TERMINAL MARGIN-BELL { ON [ column ], OFF }
Allows user to turn typewriter-like margin bell on and off, and when turned ON, also to specify the column at which the bell is rung, e.g. "set term margin-bell on 72".

SET TERMINAL MOUSE { OFF, ON }
Tells Kermit 95 whether to control the mouse itself (ON) or to ignore it. If the operating system is handling mouse events, then Kermit 95 won't see them.
SET TERMINAL NEWLINE-MODE { OFF, ON }
Tells what to send when you press the Enter key while in the Terminal screen. Normally only carriage return (CR) is sent. SET TERM NEWLINE ON means to send CR and linefeed (LF). Use this command only if the Enter key does not seem to produce the appropriate effect in the Terminal screen. Note: this is like SET TERMINAL CR-DISPLAY, but in the other direction.

SET TERMINAL OUTPUT-PACING milliseconds
Tells how long to pause between sending each character to the host when the Terminal screen is active. Normally not needed but sometimes required to work around "TRANSMISSION BLOCKED" conditions when using the mouse to paste into the terminal screen.

SET TERMINAL PCTERM { ON, OFF }
Used to activate or deactivate the PCTERM terminal emulation keyboard mode. When PCTERM is ON all keystrokes when in CONNECT mode are sent to the host as "make/break" sequences (down/up codes) instead of as characters from the REMOTE-CHARACTER-SET. When PCTERM is ON all keyboard mappings including kverbs and escape characters are disabled. To turn off PCTERM keyboard mode while in CONNECT mode press Ctrl-CapsLock. The default is OFF.

SET TERMINAL REMOTE-CHARACTER SET name [ { G0, G1, G2, G3, ALL } ]
Specifies the character set used by the host or application that Kermit 95 is connected to, and assign it to one of the tables G0 through G3, or to ALL four of them. By default, ASCII is assigned to G0, any other national 7-bit set is assigned to ALL, and any 8-bit set is assigned to G1, G2, and G3. The host switches among G0,G1,G2,G3 by setting the 8th bit of a character to 0 or 1, or with Shift-In/Shift-Out, or with escape sequences. The host can also designate characters to the Gn tables, and normally it will do so if it expects to find them there. So in most cases you need not be concerned with what's in G0..G3. This command is to force correct behavior in cases where the host application is doing something wrong. Type SET TERM REMOTE-CHAR ? or CLICK HERE to get the list of character sets you can choose from.

SET TERMINAL PRINT { AUTO, COPY, OFF, USER }
Allows selective control of various types of printing from the Terminal session. AUTO prints a line of text from the terminal screen whenever the cursor is moved off the line. COPY prints every byte received as it is received without interpretation. USER prints every byte after interpretation by the terminal emulator translates character-sets and construct escape sequences, ... The default is OFF.

SET TERMINAL ROLL-MODE { INSERT, OVERWRITE }
Tells what to do when you have the Terminal screen rolled back and then new data arrives from the keyboard communication device: Enter it into the scrollback buffer at the current rollback position (OVERWRITE) or insert it at the end of the buffer (INSERT). The default is INSERT. Typing is allowed during rollback in either mode.

SET TERMINAL ROLL-MODE KEYSTROKES { RESTORE-AND-SEND, IGNORE, SEND }
Tells what to do when you have the Terminal screen rolled back and keystrokes are entered on the keyboard: restore the screen to its active position and then send the keystroke(s); ignore the keystrokes, or send them without restoring the screen.

SET TERMINAL SCREEN-MODE { NORMAL, REVERSE }
When set to REVERSE the foreground and background colors are swapped including the application of the foreground and background intensity bits. The default is NORMAL.

SET TERMINAL SCREEN-OPTIMIZATION { ON, OFF }
ON means only write those cells to the screen that have changed since the last update. OFF means to refresh the entire screen when updating. ON is the default. Choose whichever method performs best on your computer. If you are using a speech or Braille device, you should use ON.

SET TERMINAL SCREEN-UPDATE { FAST, SMOOTH } [ milliseconds ]
Chooses the mechanism used for screen updating and the update frequency. SMOOTH means the screen is repainted every time a character arrives. FAST means the screen is repainted at fixed intervals. The default is FAST with an interval of 100 milliseconds (1/10 second). Use SMOOTH to give priority to echoing; use FAST to give priority to throughput. Vary the interval to achieve optimum results for your PC. On VT100 and above, the host may use escape sequences to switch Kermit between FAST and SMOOTH; FAST is selected by the Jump-scrolling escape sequence; SMOOTH is selected by the VT100 smooth-scrolling sequence. However, note that K95 does not presently implement smooth scrolling in the VT100 sense. If the host switches K95 from SMOOTH to FAST, the most recently specified (or if none, default) update interval is used. If you are using a speech or Braille device, you should SET TERMINAL SCREEN-UPDATE SMOOTH.

SET TERMINAL SCROLLBACK lines
Sets size of Terminal screen rollback (scrollback) buffer. lines includes the active terminal screen. The minimum is 256. The maximum is two million, but if you choose a very big number, make sure your PC has sufficient memory and swap space. The default is 512 lines.

SET TERMINAL SEND-DATA { ON, OFF }
Some terminal types support forms-filling features in which the host may request the terminal to transmit selected fields. Since this is a potential security loophole, Kermit 95 by default (OFF) sends spaces instead of the actual contents of the screen. Setting this option to ON instructs Kermit 95 to send the actual data.

SET TERMINAL SEND-END-OF-BLOCK { CRLF_ETX US_CR }
Specifies the characters to use as end of line and end of block indicators when sending data to the host. The default is US_CR. The options are combinations of names of ASCII control characters.

SET TERMINAL SGR-COLORS { ON, OFF }
SGR means Set Graphic Rendition. It is the name of the ANSI X3.64 escape sequence that is used to select normal, reverse, bold, underlined, blinking, or other character-cell attributes, including color, such as we are used to seeing on BBS's when we use "ANSI" terminal emulation. The color-setting SGR sequences, <CSI>3<x>;4<y>m, are also recognized by Kermit 95 when it is emulating a VT100 or higher VT terminal model, even though most real VT terminals do not display color, and in fact they ignore these sequences. To make Kermit 95 ignore color setting sequences, in effect turning into a monochrome terminal, use SET TERMINAL SGR-COLORS OFF. This command affects all ANSI-style emulations, including ANSI, SCOANSI, AT386, etc, as well as Wyse 370 and VT100/102/220/320.

SET TERMINAL SNI-LANGUAGE national-language
An alias for SET TERMINAL VT-LANUAGE, this command specifies the national language character-set that should be used when the NRC mode is activated for VT emulations or when CH.CODE is OFF for SNI emulations. The default language for SET TERMINAL TYPE SNI-97801 is "German".

SET TERMINAL SNI-PAGEMODE { ON, OFF }
Determines whether or not page mode is active. OFF by default.

SET TERMINAL SNI-SCROLLMODE { ON, OFF }
Determines whether or not scroll mode is active. OFF by default.

SET TERMINAL STATUSLINE { ON, OFF }
SET TERMINAL STATUSLINE OFF removes the Terminal window status line so the extra screen line can be available to host applications. SET TERMINAL STATUSLINE ON turns the status line back on. You can also toggle the status line off and on the with \Kstatus verb, normally assigned to Alt-S.

SET TERMINAL TRANSMIT-TIMEOUT seconds
Specifies the maximum amount of time C-Kermit waits before returning to the prompt if your keystrokes can't be transmitted for some reason, such as a flow-control deadlock.

SET TERMINAL TRIGGER [ string ]
Tells Kermit to look for the given string during all subsequent CONNECT sessions, and if seen, to return to command mode automatically, as if you had escaped back manually. If the string includes any spaces, you must enclose it in braces. Example:

  SET TERMINAL TRIGGER {NO CARRIER}

If a string is to include a literal brace character, precede it with a backslash:

  ; My modem always makes this noise when the connection is lost:
  SET TERMINAL TRIGGER |||ppp\{\{\{\{UUUUUUU

If you want Kermit to look for more than one string simultaneously, use the following syntax:

  SET TERMINAL TRIGGER {{string1}{string2}...{stringn}}

In this case, Kermit returns to command mode automatically if any of the given strings is encountered. Up to 8 strings may be specified. If the most recent return to command mode was caused by a trigger, the \v(trigger) variable contains the trigger value; otherwise \v(trigger) is empty. The SHOW TRIGGER command displays the SET TERMINAL TRIGGER values as well as the current \v(trigger) value.

SET TERMINAL TYPE
(See top of this file).

SET TERMINAL UNIX-MODE { ON, OFF }
This affects emulation of terminals that have a "UNIX mode", currently only the Data General DASHER 217. OFF (the default) means the terminal operates in its native mode, ON switches it to UNIX mode.

SET TERMINAL URL-HIGHLIGHT { ON attribute, OFF }
Specifies whether K-95 should highlight URLs and which screen attribute should be used. The screen attributes can be one of NORMAL, BLINK, BOLD, DIM, INVISIBLE, REVERSE, or UNDERLINE. The default is ON using the BOLD screen attribute.

SET TERMINAL VIDEO-CHANGE { DISABLED, ENABLED }
Tells whether Kermit 95 should change between 80- and 132-column windows automatically in response to escape sequences from the other computer. DISABLED means it should not; ENABLED means it should. The default is ENABLED. When TERMINAL VIDEO-CHANGE is DISABLED, the emulator switches modes without changing the window size, and wide screens can be viewed by scrolling horizontally.

SET TERMINAL VT-LANGUAGE language
Specifies the National Replacement Character Set (NRC) to be used when NRC mode is activated. The default is "North American".

SET TERMINAL VT-NRC-MODE { ON, OFF }
OFF (default) chooses VT multinational Character Set mode. OFF chooses VT National Replacement Character-set mode. The NRC is selected with SET TERMINAL VT-LANGUAGE.

SET TERMINAL WIDTH cols
Tells how many columns define the terminal size. 80 is the default width. 132 is the normal choice for wider screens.

SET TERMINAL WRAP { OFF, ON }
Tells whether the terminal emulator should automatically wrap long lines on your screen.

Click Back on your Browser's Toolbar to return.