Kermit 95 Release: 3.0.0 DEV
Build Date: 10 June 2025
This is an outline of the Kermit 95 Control Sequences documentation. It only contains section headings for quick navigation to the various sections of the main document.
Kermit 95 Release: 3.0.0 DEV
Build Date: 10 June 2025
This is an outline of the Kermit 95 Control Sequences documentation. It only contains section headings for quick navigation to the various sections of the main document.
Kermit 95 supports a selection of operating system commands for setting the window title and manipulating color handling. These can be terminated with either an ST (OSC Ps ; Pt ST) or, for compatibility with other terminal emulators, a BEL (OSC Ps ; Pt BEL)
Ps specifies the type of operation:
Sets the window title to the value supplied, up to 63 characters.
Not supported: Windows doesn't provide a way of setting a value for the task bar label that is different from the window title.
Sets the window title to the value supplied, up to 63 characters.
Set Icon Title (VT520)
Not supported: Windows doesn't provide a way of setting a value for the task bar label that is different from the window title.
Changes the RGB value for one or more colors in the color palette. Multiple c ; spec pairs can be supplied separated by ';' to change multiple entries in the color palette. Only supported in GUI versions of Kermit 95.
The c component is the color index to change. Valid values depend on which color palette is currently active: 0–15 for aixterm-16, 0–87 for xterm-88, and 0–255 for xterm-256. The first five values above the range of the current palette (e.g., for the xterm-256 palette: 256, 257, 258, 259, 260) set attribute colors. See OSC-5 for more details.
The spec component is a color specification in the form supported by XParseColor. Both the newer rgb:RRRR/GGGG/BBBB and older #RRRRGGGGBBBB formats are supported, where R/G/B are hex digits (case doesn't matter). X11 color names are also accepted and parsed case-insensitively. For more information on this color specification, see the XParseColor man page, while a list of X11 color names and values can be found on Wikipedia. Other XParseColor formats such as rgbi: and CIEuvY: are not currently supported.
If the spec component is a '?' character then instead of setting a color for the specified color index, the current color is returned in the form of an OSC sequence suitable for restoring the current value. The returned OSC sequence uses the same terminator (BEL or ST) as the original query OSC sequence.
For example, OSC 4 ; 1 ; ? ST will cause K95 to send back OSC 4 ; 1 ; r g b : 0 0 0 0 / 0 0 0 0 / 8 0 8 0 ST for the default RGB value of 0/0/128 for color index 1. If multiple query parameters are supplied (eg OSC 4 ; 1 ; ? ; 2 ; ? ; 3 ; ? ST then multiple responses will be sent back.
If a color was set by name rather than an RGB value, then when queried that colors RGB value will be returned; Kermit 95 does not remember the original color name used.
Changes the foreground color (background color for reverse) of an attribute (special color in xterm), equivalent to SET TERM COLOR. Has no visible effect until that attribute is turned off ( OSC-6 or SET TERM ATTRIBUTE). In the case of Bold and Blink, the attribute must be turned off with SET TERM ATTRIBUTE {BOLD,BLINK} OFF COLOR (OSC-6 does this). Changes are reverted on terminal reset or via OSC-104/OSC-105.
Multiple c;spec pairs can be supplied in the same fashion as OSC-4, and the supported formats for spec are the same. The attributes that can be set are:
These values can also be set via OSC-4 by adding the above numbers to the maximum number of colors in the current palette (as set by SET TERM COLOR PALETTE). For example, if the current palette is xterm-256, then OSC 4 ; 257 ; r g b : f f f f / 0 0 0 0 / 0 0 0 0 would set the underline attribute to red.
This is a synonym for OSC-106 (OSC-6 and OSC-106 have identical implementations).
Requires one parameter: a new default foreground color, which does not take effect until attributes are set (eg, with SGR-0) and is reset on terminal reset. Format of the color parameter is the same color spec format as OSC-4 (rgb:RRRR/BBBB/GGGG), and if the text parameter is a `?` then the response will be an OSC-10 sequence to set the current color.
Up to nine additional color parameters can be supplied which will be applied to OSC-11 through OSC-19 in order. For example, the sequence \033]10;rgb:ffff/0000/0000;rgb:0000/ffff/0000\07 would set the foreground to red and background to green. If any of these parameters are `?`, they will be included in the query color response.
Requires one parameter: a new default background color, which does not take effect until attributes are set (e.g., with SGR-0) and is reset on terminal reset. Format of the color parameter is the same color spec format as OSC-4 (rgb:RRRR/BBBB/GGGG), and if the text parameter is a `?` then the response will be an OSC-11 sequence to set the current color.
Up to eight additional color parameters can be supplied which will be applied to OSC-12 through OSC-19 in order.
Requires one parameter: a new text cursor background color, which takes effect immediately and is reset on terminal reset. Format of the color parameter is the same color spec format as OSC-4 (rgb:RRRR/BBBB/GGGG), and if the text parameter is a `?` then the response will be an OSC-12 sequence to set the current color.
Up to seven additional color parameters can be supplied which will be applied to OSC-13 through OSC-19 in order.
Not supported. Consumes one color parameter in the same color spec format as OSC-4 (rgb:RRRR/BBBB/GGGG), but does not apply it to anything as K95 does not support changing the pointer color.
Up to six additional color parameters can be supplied which will be applied to OSC-14 through OSC-19 in order.
Not supported. Consumes one color parameter in the same color spec format as OSC-4 (rgb:RRRR/BBBB/GGGG), but does not apply it to anything as K95 does not support changing the pointer color.
Up to five additional color parameters can be supplied which will be applied to OSC-15 through OSC-19 in order.
Not supported. Consumes one color parameter in the same color spec format as OSC-4 (rgb:RRRR/BBBB/GGGG), but does not apply it to anything as K95 does not support Tektronix emulation.
Up to four additional color parameters can be supplied which will be applied to OSC-16 through OSC-19 in order.
Not supported. Consumes one color parameter in the same color spec format as OSC-4 (rgb:RRRR/BBBB/GGGG), but does not apply it to anything as K95 does not support Tektronix emulation.
Up to three additional color parameters can be supplied which will be applied to OSC-17 through OSC-19 in order.
Sets the selection background color. Reset on terminal reset.
Requires one parameter: a new text selection background color, which is reset on terminal reset. Format of the color parameter is the same color spec format as OSC-4 (rgb:RRRR/BBBB/GGGG), and if the text parameter is a `?` then the response will be an OSC-17 sequence to set the current color.
Up to two additional color parameters can be supplied which will be applied to OSC-18 and OSC-19 in order.
Not supported. Consumes one color parameter in the same color spec format as OSC-4 (rgb:RRRR/BBBB/GGGG), but does not apply it to anything as K95 does not support Tektronix emulation.
One additional color parameters can be supplied which will be applied to OSC-19 in order.
Requires one parameter: a new text selection foreground color, which is reset on terminal reset. Format of the color parameter is the same color spec format as OSC-4 (rgb:RRRR/BBBB/GGGG), and if the text parameter is a `?` then the response will be an OSC-19 sequence to set the current color.
Sets the window title to the value supplied, up to 63 characters.
The first parameter, Pc, specifies which of xterms buffers are being manipulated. One or more of the following can be specified: c p q s 0 1 2 3 4 5 6 7
As Windows and OS/2 only have the clipboard, Kermit 95 validates the first parameter but otherwise ignores it. As the first parameter is optional, no value needs to be supplied for it.
The second parameter, Pd, is the new base64-encoded text to place in the clipboard. The text (before being base64 encoded) is assumed to be in the same character set as current remote character set. Kermit 95 will attempt to convert it to the local codepage if Unicode is disabled or Kermit 95 is running on a version of Windows that does not support Unicode (Windows 95/98/ME). Kermit 95 does not attempt to convert the character encoding.
If, rather than a base64-encoded string, the second parameter is the question-mark character (?), Kermit 95 will convert the current clipboard data to the remote character set, base64 encode it, and return it in the form: OSC 52 ;; Pd ST
By default, aside from producing a notification in K95G on Windows 2000 or newer Kermit 95 ignores OSC-52 unless the user has chosen to enable it. Read and Write can be enabled individually via the SET TERMINAL CLIPBOARD-ACCESS command.
Resets one or more colors in the color palette to defaults or values specified by the user via SET GUI RGBCOLOR. Multiple color numbers can be specified separated by ';' (e.g., OSC 1 0 4 ; 1 ; 2 ; 3 ST). Only supported in GUI versions of Kermit 95.
If no parameters are given (eg, OSC 104 ST), then the entire color palette is reset.
The first five color numbers above the range of the current palette allow resetting attribute colors in the same way OSC-4 allows setting attribute colors. OSC-104 will not reset all attribute colors in the absence of any parameters however; for that OSC-105 must be used.
Resets one or more attribute colors (special colors in xterm) to their default/user set values. Any number of colors can be specified using the same numberas as for OSC-5. If none are specified, all attribute colors are reset.
Enables rendering attributes as color (special color in xterm)—equivalent to SET TERM ATTRIBUTE x OFF or, in the case of blink and bold, SET TERM ATTRIBUTE {BLINK,BOLD} OFF COLOR.
The c parameter is the attribute to enable or disable, and the second parameter, f is if it should be disabled (0) or enabled and shown as color (any other value):
The colorAttMode (off by default in xterm, on by default in Kermit 95) controls whether attribute colors (when enabled) take priority over SGR colors. When OFF, only text that has the same color as the default attribute (settable with DECAC, SNF, SNB, OSC-10/11, etc.) will show in its attribute color. When ON, it will show in its attribute color regardless of whether some other SGR color was assigned to that text.
Not supported as the specified icon file specification is likely to reside on a remote host which K95 has no reasonable way of accessing.
Sets the window title to the value supplied, up to 63 characters.
Not supported: Windows doesn't provide a way of setting a value for the task bar label that is different from the window title.
This OSC is not terminated! At all! The OSC is, verbatim, OSC R. No ST or BEL to terminate! For this reason its limited to the linux terminal type.
In GUI versions of Kermit 95, this resets all color palettes to defaults or values specified by the user via SET GUI RGBCOLOR. In console versions, this OSC is not acted upon.
This OSC is not terminated! At all! No ST or BEL to terminate! For this reason its limited to the linux terminal type.
In GUI versions of Kermit 95, this sets the RGB value for color index n (0–15 in hex) to the RGB value rrggbb (0–255 in hex). In console versions of Kermit 95, this OSC is not acted upon.