VT100

From Mudpedia
Jump to: navigation, search

VT100 is a computer terminal which was made by DEC (Digital Equipment Corporation). It became the de facto standard used by modern terminal emulators.

The VT100 was introduced in August 1978, following its predecessor, the VT52, and communicated with its host system over serial lines using the ASCII character set and control sequences (a.k.a. escape sequences) standardized by ANSI (American National Standards Institute). The VT100 was the first Digital mass-market terminal to incorporate graphic renditions (blinking, bolding, reverse video, and underlining) as well as a selectable 80 or 132 column display. The VT100 also introduced an additional character set, often called box characters, that allowed the drawing of on-screen forms.

The control sequences used by the VT100 family are based on the ANSI X3.64 standard, later ECMA-48 and ISO/IEC 6429. These are typically referred to as ANSI colors.[1] In addition, the VT100 provided backwards compatibility for VT52 users, with support for the VT52 control sequences.[2]

In 1983, the VT100 was replaced by the more-powerful VT200 series terminals such as the VT220. In 1995, the terminal business of Digital was sold to Boundless Technologies.

Contents

VT100 Console Codes

Control Characters

Code Effect Note
\x07 BEL Ring the terminal bell.
\x08 BS Backspace
\x09 HT Tab
\x0A LF Linefeed
\x0D CR Carriage return
\x1B ESC Escape
\x1B [ CSI Control Sequence Introducer

Escape Sequences

Code Effect Note
ESC c RIS Reset the terminal
ESC D IND Linefeed
ESC E NEL Newline
ESC 7 DECSC Save cursor position
ESC 8 DECRC Restore cursor position
ESC [ CSI Control sequence introducer
ESC > DECPNM Set numeric keypad mode
ESC = DECPAM Set application keypad mode


CSI color codes

Code Effect Note
CSI n m SGR ANSI color code
CSI 38 ; 5 ; n m XTERM256 foreground xterm color code, not part of the VT100 standard.
CSI 48 ; 5 ; n m XTERM256 background xterm color code, not part of the VT100 standard.

ECMA-48 CSI sequences

Code Effect Note
CSI n @ ICH Insert n blank characters
CSI n A CUU Move cursor up n rows
CSI n B CUD Move cursor down n rows
CSI n C CUF Move cursor forward n rows
CSI n D CUB Move cursor backward n rows
CSI n E CNL Move cursor down n rows, to column 1
CSI n F CPL Move cursor up n rows, to column 1
CSI n G CHA Move cursor to column n
CSI n ; m H CUP Move cursor to row n and column m
CSI n J ED n = 0 erase from cursor to end of display n = 1 erase from cursor to start of display n = 2 erase display
CSI n K EL n = 0 erase line n=1 erase from start of line to cursor n=2 erase from cursor to end of line
CSI n L IL Insert n blank lines
CSI n M DL Delete n lines
CSI n P DCH Delete n characters
CSI n X ECH Erase n characters
CSI n ; m r DECSTBM Set scrolling region between top row n and bottom row m

See also

References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox