Dec 282017
Technical Information for the IBM PC, AT, and PS/2. | |||
---|---|---|---|
File Name | File Size | Zip Size | Zip Type |
ANSI.DOC | 8498 | 3289 | deflated |
KEYCODE.DOC | 8645 | 3255 | deflated |
MEMORY.DOC | 25513 | 8812 | deflated |
PCONNECT.DOC | 9258 | 2455 | deflated |
PORTS.DOC | 70189 | 22061 | deflated |
STRUCT.DOC | 66763 | 19098 | deflated |
Download File PCDOCS.ZIP Here
Contents of the ANSI.DOC file
ANSI Standard (X3.64) Control Sequences
for Video Terminals and Peripherals
with Examples forthe IBMPC
Compiled by W.C. Parke, 1986
References:
ANSI X3.64-1979:
Information Systems-Codes, American National Standards
Institute, 1430 Broadway, NY,NY 10018
ISO 6429 standard:
Information Processing-ISO 7-bit and 8-bit Coded
Character Sets-Additional Control Functions for
Charater-Imaging Devices, ANSI as above.
Mark L.Siegel,April 1984 BYTE, p. 365
Zenith Programmer's Utility Pack, Ver. 2, 1984
In the table below:
Fis a Final character in
an Escape sequence (F from 48 to 126 in theASCII table)
a control sequence (F from 64 to 126).
Feis a Final character inASCII range 64 to 95.
Gsis a graphic character appearing in strings (Gsranges from
32 to 126) in the ASCIItable.
C0is the set of 7-bit ASCII control characters from 0 to 31.
C1the setof control characters availableonly in8-bit systems.
Ceis a control represented as a single bit combination inthe C1 set
of controls in an 8-bitcharacter set.
Iis an Intermediate character from 32 to47 (inclusive) in the
ASCII table.
Pis a parameter character from 48 to 63 (inclusive) in the ASCII
table.
Pnis a numeric parameter in a control sequence, astring of zero or
more charactersrangingfrom 48to 57 in the ASCII table.
Numericparameters mustbe in decimal radix.
Psis a variable number ofselective parameters ina control sequence
with each selective parameter separatedfrom the other by the code
59 (which usually represents a semicolon); Ps ranges from
48 to 57 and 59.
Default
Sequence Sequence Parameter
Mnemonic Name Sequence Value
---------------------------------------------------------------------------
Introducer sequences:
CSI Control Sequence Intro Esc [
SS2 SingleShift 2(G2 set) Esc N
SS3 SingleShift 3(G3 set) Esc O
Delimiters:
APC Applicatn Program Command Esc Fe
DCS DeviceControlString Esc P
OSC Operating System Command Esc ]
PM Privacy Message Esc ^
ST StringTerminator Esc \
Configuration:
DA DeviceAttributes Esc [ Pn c0
The VT100 responds to receiving the DAby transmittingthe
sequence: Esc[ ? l ;Ps c
DSR DeviceStatus Report Esc [ Ps n0
The console driver will outputa CPR sequence.
STS Set Transmit State Esc S
DMI Disable ManualInput Esc \
EMI EnableManual Input Esc b
INT Interrupt Esc a
RIS Reset to Initial State Esc c
Editor Functions:
CBT CursorBackward Tab Esc [ Pn Z1
CCH CancelPrevious Character Esc T
CHA CursorHorzntal Absolute Esc [ Pn G1
CHT CursorHorizontal Tab Esc [ Pn I1
CNL CursorNext Line Esc [ Pn E1
CPL CursorPreceding Line Esc [ Pn F1
CPR CursorPosition Report Esc [ Pn ; Pn R1, 1
Reportof cursor current line and column. ()Do not use as part
of MS-DOS Prompt command.)
CTC CursorTab Control Esc [ Ps W0
CUB CursorBackward Esc [ Pn D1
Move cursor back Pn columns. Ignored if cursor in leftmost
column.
CUD CursorDown Esc [ Pn B1
Move cursor down Pn lines. Ignored ifcursor on bottom line.
CUF CursorForward Esc [ Pn C1
Move cursor Pncolumnsforward. Ignored if cursor at rightmost
column.
CUP CursorPosition Esc [ Pn ; Pn H1, 1
Move cursor toposition specified. First parameter isline
numberand second is column number. No parameters means home
position.
CUU CursorUp Esc [ Pn A1
Move cursur upPn lines. Ignored if cursor ontop line.
CVT CursorVertical Tab Esc [ Pn Y
DAQ DefineArea Qualification Esc [ Ps o0
DCH DeleteCharacter Esc [ Pn P1
DL DeleteLine Esc [ Pn M1
EA Erase in Area Esc [ Ps O0
ECH Erase Character Esc [ Pn X1
ED Erase in Display Esc [ Ps J0
Eraseswhole screen and cursorgoes tohome position.
EF Erase in Field Esc [ Ps N0
EL Erase in Line Esc [ Ps K0
Eraseseverything between the cursor and the end of the line,
including cursor position.
EPA End ofProtected Area Esc W
ESA End ofSelected Area Esc G
ICH InsertCharacter Esc [ Pn @1
IL InsertLine Esc [ Pn L1
NP Next Page Esc [ Pn U1
PP Preceding Page Esc [ Pn V1
SD ScrollDown Esc [ Pn T1
SL ScrollLeft Esc [ Pn Space @1
SPI Spacing Increment Esc [ Pn ; Pn Space Gnone
SPA Start of Protected Area Esc V
SR ScrollRight Esc [ Pn Space A1
SSA Start of Selected Area Esc F
SU ScrollUp Esc [ Pn S1
TBC Tab Clear Esc [ Ps g0
TSS Thin Space Specification Esc [ Pn Space Enone
VPA Vert Position Absolute Esc [ Pn d1
VPR Vert Position Relative Esc [ Pn e1
VTS Vertical Tabulation Set Esc J
Format Sequences:
FNT Font Selection Esc [ Pn ; Pn Space D0, 0
GSM Graphic Size Modify Esc [ Pn ; Pn Space B100, 100
GSS Graphic Size Selection Esc [ Pn Space Cnone
HPA Horz Position Absolute Esc [ Pn `1
HPR Horz Position Relative Esc [ Pn a1
HTJ Horz Tab w/Justification Esc I
HTS Horizontal TabSet Esc H
HVP Horz &Vertical Position Esc [ Pn ; Pn f1, 1
Moves cursor to line number, column number specified.
No parameters moves cursor to home position.
IND Index Esc D
JFY Justify Esc [ Ps ; ... ; Ps Space F0
MC Media Copy Esc [ Ps i0
MW Message Waiting Esc U
NEL Next Line Esc E
PLD Partial Line Down Esc K
PLU Partial Line Up Esc L
PU1 Private Use 1 Esc Q
PU2 Private Use 2 Esc R
QUAD Typographic Quadding Esc [ Ps Space H0
RCP Restore CursorPosition ESC [ u
Restores cursor position savedby SCP.
REP RepeatChar orControl Esc [ Pn b1
RI Reverse Index Esc M
RM Reset Mode Esc [ Ps lnone
Reset screen width or type. See SM for parameters. Parameter7
will reset wrap mode (characters past end-of-line are lost.)
SCP Save Cursor Position Esc [ s
Cursorposition will be restored with RCP sequence.
SEM SelectEdit Extent Mode Esc [ Ps Q0
SGR SelectGraphicRendition Esc [ Ps m0
Invokes graphic rendition specified bythe parameters. All
following characters are rendered according tothe parameter(s)
until the nextSGR. Parameterfunctions on IBM PC:
0 Allattributes off (normal,white on black)
1 Bold on (high intensity)
4 Underscore On (monochrome displays only)
5 Blink on
7 Reverse Video on
8 Cancelled on (invisible)
30 Black foreground
31 Redforeground
32 Green foreground
33 Yellow foreground
34 Blue foreground
35 Magenta foreground
36 Cyan foreground
37 White foreground
40 Black foreground
41 Redbackground
42 Green background
43 Yellow background
44 Blue background
45 Magenta background
46 Cyan background
47 White background
SM SelectMode Esc [ Ps hnone
Invokes the screen width or type specified. IBM PC paramters:
0 40 x 25 monochrome
1 40 x 25 color
2 80 x 25 monochrome
3 80 x 25 color
4 320x 200 color
5 320x 200 monochrome
6 640x 200 monochrome
7 wrap at endof line(word wrap)
IBM PC KeyboardReassignment:
Keyboard reassignment uses an undefinedANSI X3.64-1979code sequence
to define a character or set ofcharacters sendby the console whenever
a givenkey is pressed on an IBM PC compatible. The control sequence
is:
ESC [ Pn ; Pn ;... Pn p
or
ESC [ "string" ; p
The first ASCIIcode inthe sequence defines which codeis being mapped.
If the first code is 0 (nul), then the second code is the extended
IBM keycode. The remaining numbers define the sequenceof ASCII codes
generated when this keyis intercepted,or the string (enclosedin
quotes)to be generated. For example:
ESC [65;81pA becomes Q
ESC [0;68;"dir";13pF10 generates dir followed bya CR.
December 28, 2017
Add comments