home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
c
/
conex62.zip
/
TECH.REF
< prev
next >
Wrap
Text File
|
1992-10-19
|
39KB
|
1,125 lines
Technical Reference
CONEX 6.2
Mon 10-19-1992 09:18:06
┌───────────────────────┐
│ ┌─────────────────┐ │
│ │ ports │ │
│ └─────────────────┘ │
└───────────────────────┘
COM
────────────────────────────────────────────────────────────────────
- by default COM 1/3 use interrupt 4, COM 2/4 use interrupt 3
- base port registers are read from BIOS communication area
normally 03f8h is COM 1 and 02f8h is COM 2
port *F8 - Transmit/Receive Buffer (read/write)
Baud Rate Divisor LSB if bit 7 of LCR is set (read/write)
port *F9 - Interrupt Enable Register - IER (read/write)
Baud Rate Divisor MSB if bit 7 of LCR is set (read/write)
│7│6│5│4│3│2│1│0│
│ │ │ └──── 1 = enable data available int
│ │ └───── 1 = enable THRE interrupt
│ └────── 1 = enable lines status interrupt
└─────── 1 = enable modem-status-change interrupt
Baud Rate Divisor Table
Baud Rate Baud Rate
Baud Rate Divisor Baud Rate Divisor
50 2304 2400 48
75 1536 3600 32
110 1047 4800 24
150 768 9600 12
200 576 19200 6
300 384 38400 3
600 192 57600 2
1200 96 115200 1
1800 64
port *FA - Interrupt Identification Register - IIR (read only)
│7│6│5│4│3│2│1│0│ 2FA, 3FA Interrupt ID Register
│ │ │ │ │ │ │ └──── 1 = no int. pending, 0=int. pending
│ │ │ │ │ └─┴───── Interrupt Id bits (see below)
│ │ │ │ └──────── 16550 1 = timeout int. pending, 0 for 8250/16450
│ │ └─┴───────── reserved (zero)
└─┴──────────── 16550 set to 1 if FIFO queues are enabled
Bits
21 Meaning Priority To reset
00 modem-status-change lowest read MSR
01 transmit-register-empty low read IIR / write THR
10 data-available high read rec buffer reg
11 line-status highest read LSR
- interrupt pending flag uses reverse logic, 0 = pending, 1 = none
- interrupt will occur if any of the line status bits are set
- THRE bit is set when THRE register is emptied into the TSR
Port *FA - 16550 FIFO Control Register - FCR (write only)
│7│6│5│4│3│2│1│0│ 2FA, 3FA FIFO Control Register
│ │ │ │ │ │ │ └──── 1 = enable clear XMIT and RCVR FIFO queues
│ │ │ │ │ │ └───── 1 = clear RCVR FIFO
│ │ │ │ │ └────── 1 = clear XMIT FIFO
│ │ │ │ └─────── 1 = change RXRDY & TXRDY pins from mode 0 to mode 1
│ │ └─┴──────── reserved (zero)
└─┴─────────── trigger level for RCVR FIFO interrupt
Bits RCVR FIFO
76 Trigger Level
00 1 byte
01 4 bytes
10 8 bytes
11 14 bytes
- Bit 0 must be set in order to write to other FCR bits
- Bit 1 when set to 1 the RCVR FIFO is cleared and this bit is reset.
The receiver shift register is not cleared.
- Bit 2 when set to 1 the XMIT FIFO is cleared and this bit is reset.
The transmit shift register is not cleared.
port *FB - Line Control Register - LCR (read/write)
│7│6│5│4│3│2│1│0│
│ │ │ │ │ │ └─┴──── word length select bits (see below)
│ │ │ │ │ └─────── 0 = 1 stop bit, 1 = 1.5 or 2 (see note)
│ │ │ │ └──────── 0 = no parity, 1 = parity (PEN)
│ │ │ └───────── 0 = odd parity, 1 = even (EPS)
│ │ └────────── 0 = parity disabled, 1 = enabled
│ └─────────── 0 = turn break off, 1 = force spacing break state
└──────────── 1 = baud rate divisor (DLAB)
Bits
10 Word length bits
00 = 5 bits per character
01 = 6 bits per character
10 = 7 bits per character
11 = 8 bits per character
port *FC - Modem Control Register - MCR (read/write)
│7│6│5│4│3│2│1│0│
│ │ │ └──── 1 = activate DTR
│ │ └───── 1 = activate RTS
│ └────── OUT1
└─────── OUT2
port *FD - Line Status Register - LSR (read only)
│7│6│5│4│3│2│1│0│
│ │ │ │ │ │ └──── 1 = data ready
│ │ │ │ │ └───── 1 = overrun error (OE)
│ │ │ │ └────── 1 = parity error (PE)
│ │ │ └─────── 1 = framing error (FE)
│ │ └──────── 1 = break interrupt (BI)
│ └───────── 1 = transmitter holding register empty (THRE)
└────────── 1 = transmitter shift register empty (TSRE)
port *FE - Modem Status Register - MSR (read only)
│7│6│5│4│3│2│1│0│
│ │ │ │ │ │ │ └──── 1 = DCTS Delta CTS (CTS changed)
│ │ │ │ │ │ └───── 1 = DDSR Delta DSR (DSR changed)
│ │ │ │ │ └────── 1 = RI ring indicator changed
│ │ │ │ └─────── 1 = DDCD Delta Data Carrier Detect (DCD changed)
│ │ │ └──────── 1 = CTS
│ │ └───────── 1 = DSR
│ └────────── 1 = ring indicator (RI)
└─────────── 1 = receive line signal detect
INT 14H
────────────────────────────────────────────────────────────────────
INT 14,0 - Initialize Communications Port Parameters
AH = 00
AL = parms for initialization (see tables below)
DX = zero based serial port number (0-1) (0-3 for AT)
│7│6│5│4│3│2│1│0│ AL Parity (bits 4 & 3)
│ │ │ │ │ │ └─┴──── word length bits 00 = none
│ │ │ │ │ └─────── stop bits flag 01 = odd
│ │ │ └─┴──────── parity bits 10 = none
└─┴─┴─────────── baud rate bits 11 = even
Word length (bits 1 & 0) Stop bit count (bit 2)
10 = 7 bits 0 = 1 stop bit
11 = 8 bits 1 = 2 stop bits
Baud rate (bits 7, 6 & 5)
000 = 110 baud 100 = 1200 baud
001 = 150 baud 101 = 2400 baud
010 = 300 baud 110 = 4800 baud
011 = 600 baud 111 = 9600 baud
on return:
AH = port status
AL = modem status
INT 14,1 - Send Character to Communications Port
AH = 01
AL = character to send
DX = zero based serial port number (0-1) (0-3 for AT)
on return:
AH = port status
bit 7=0 indicates success
bit 7=1 indicates error, bits 0-6 indicate cause
INT 14,2 - Receive Character from Communications Port
AH = 02
DX = zero based serial port number (0-1) (0-3 for AT)
on return:
AH = port status
bit 7 = 0 if successful
bit 7 = 1 if call failed
AL = character received if call was success
INT 14,3 - Get Serial Port Status
AH = 03
DX = zero based serial port number (0-1) (0-3 for AT)
on return:
AH = port status
AL = modem status
INT 14,4 - Send Break (not part of BIOS)
AH = 04
┌───────────────────────┐
│ ┌─────────────────┐ │
│ │ VT320 Commands │ │
│ └─────────────────┘ │
└───────────────────────┘
- VT100 commands are marked with (1)
Cursor movement
────────────────────────────────────────────────────────────────────
ESC [ <n> A move cursor up <n> lines (1)
ESC [ <n> B move cursor down <n> lines (1)
ESC [ <n> C move cursor right <n> columns (1)
ESC [ <n> D move cursor left <n> columns (1)
ESC [ <n> E move cursor down <n> columns and to column 1
ESC [ <n> F move cursor up <n> lines and to column 1
ESC [ <n> G move cursor to column <n>
ESC [ <l>;<c> H = ESC [ <l>;<c> f (1)
ESC [ <n> ` = ESC [ <n> G
ESC [ <n> a = ESC [ <n> C
ESC [ <n> e = ESC [ <n> A
ESC [ <n> d move cursor to line <n>
ESC [ <l>;<c> f move cursor to line <l> and column <c> (1)
ESC D move cursor down one line with scroll (1)
ESC E move cursor to beginning of next line with scroll (1)
ESC M move cursor up one line with scroll (1)
ESC 7 save cursor attributes (1)
ESC 8 restore cursor attributes (1)
- Normal screen size of an VT100 terminal is 24 lines X 80 columns.
The upper line in CONEX is used as status line, so that the cursor
position (line 1, column 1) gives (line 2, column 1) on screen.
The upper line cannot be referenced by any VT100 commands!
- A missing number <n> is set to 0. Line 0, column 0 is equivalent to
line 1, column 1.
tabulators
────────────────────────────────────────────────────────────────────
ESC H set tab stop at cursor (1)
ESC [ g
ESC [ 0 g delete tabulator at cursor position (1)
ESC [ 3 g clear all tab stops (1)
ESC [ <n> I move forward n tab stops
ESC [ <n> Z move backward n tab stops
- tabulators are preset to positions 9, 17, 24 ...
character attributes
────────────────────────────────────────────────────────────────────
ESC [ m
ESC [ 0 m all character attributes off (1)
ESC [ 1 m bold on (1)
ESC [ 4 m underline on (1)
ESC [ 5 m blink on (1)
ESC [ 7 m reverse on (1)
ESC [ 22 m bold off
ESC [ 24 m underline off
ESC [ 25 m blink off
ESC [ 27 m reverse off
ESC [ <a1>;<a2>; ... m set character attributes a1, a2 ...
(maximal 16 attributes) (1)
- since characters cannot be underlined on color screens
they are displayed in special colors
erase and insert characters
────────────────────────────────────────────────────────────────────
ESC [ K
ESC [ 0 K erase from cursor position to end of line (1)
ESC [ 1 K erase from beginning of line to cursor position (1)
ESC [ 2 K erase entire line (1)
ESC [ J
ESC [ 0 J erase from cursor position to end of screen (1)
ESC [ 1 J erase from beginning of screen to cursor position (1)
ESC [ 2 J erase entire screen (1)
ESC [ <n> @ insert <n> blank characters beginning at cursor
ESC [ <n> L insert <n> lines at cursor position
ESC [ <n> M delete <n> lines at cursor
ESC [ <n> P delete <n> characters following cursor position
ESC [ <n> X erase <n> characters beginning at cursor
modes
────────────────────────────────────────────────────────────────────
ESC = set application keypad mode (1)
ESC > set numeric keypad mode (default) (1)
- If the numeric keypad is activated, i.e. NUM LOCK is pressed,
numbers or control functions are generated by the numeric keypad.
(see table 2)
ESC SP G set 8-bit transmission mode
ESC SP F set 7-bit transmission mode
ESC [ ? 1 h set cursor keys application mode (1)
ESC [ ? 1 l set cursor key mode (default) (1)
- The cursor keys UP, DOWN, LEFT, RIGHT send different code according
to cursor key mode set. (see table 1)
ESC [ ? 6 h relative origin mode (1)
ESC [ ? 6 l absolute origin mode (default) (1)
- In absolute origin mode line numbers are counted relative to top
margin of screen, the cursor can be moved outside the scrolling
region. In relative mode line numbers are relative to top margin of
scrolling region and the cursor cannot be moved outside.
ESC [ ? 7 h autowrap mode on (default) (1)
ESC [ ? 7 l autowrap mode off (1)
- Characters at the end of line automatically wrap into the next line
if autowrap mode is on.
ESC [ 4 h insert mode (1)
ESC [ 4 l overwrite mode (default) (1)
- In Insert mode all characters from cursor position up to end of
line are move right by one place and the character is inserted.
The last character in line is always lost.
ESC [ 18 h send FF after print screen (default)
ESC [ 18 l dont send FF after print screen
ESC [ 19 h Full screen print mode (default)
ESC [ 19 l Scrolling region print mode
- Print full screen or scrolling region, when ESC [ 0 i is received.
ESC [ 38 h Enter TEK mode (any ESC [ ... leaves TEK mode)
terminal status report
────────────────────────────────────────────────────────────────────
ENQ (^E) return answerback message (defined in Alt-I)
ESC [ c Primary device attributes request
--> ESC [ ? 63;2 c VT320 with printer
--> ESC [ ? 62;2 c VT220 with printer
--> ESC [ ? 6 c VT102
--> ESC [ ? 1;2 c VT100
- the answer is selected from the setting in <Alt-M>
ESC [ ? 15 n request printer status
--> ESC [ ? 10 n if printer is ready
--> ESC [ ? 11 n if printer is not ready
- original VT102 terminal also give the answer ESC [ ? 13 n =
printer not connected.
ESC [ 6 n request cursor position
--> ESC [ <l>;<r> R return cursor line <l> and row <r>
ESC [ 5 n request terminal status
--> ESC [ 0 n terminal is functioning and ready
ESC [ ? 20 n request function key definition lock
--> ESC [ 20 n key definition not locked
--> ESC [ 21 n key definition locked (not yet implemented!)
ESC [ ? 26 n request keyboard language
--> ESC [ ? 27;<l> n returns language <l>
This information is taken from
'country=' in config.sys.
┌───────────────────────┬────────────────────┬──────────────────────┐
│ <l> language │ <l> language │ <l> language │
├───────────────────────┼────────────────────┼──────────────────────┤
│ 1 North America │ 7 German │ 12 Swedish │
│ 2 British │ 8 Dutch │ 13 Norwegian │
│ 3 Belgian (Flemish) │ 9 Italian │ 14 Belgian (French) │
│ 4 French Canadian │ 10 Swiss (French) │ 15 Spanish │
│ 5 Danish │ 11 Swiss (German) │ 16 Portuguese │
│ 6 Finnish │ │ │
└───────────────────────┴────────────────────┴──────────────────────┘
printer control
────────────────────────────────────────────────────────────────────
ESC [ 0 i print screen or scrolling region (see ESC [ 19 h)
ESC [ 4 i disable transparent print mode
ESC [ 5 i enable transparent print mode
- In transparent print mode all characters are directly transfered
to the printer, but not displayed on screen.
ESC [ ? 1 i print cursor line
ESC [ ? 4 i disable auto print
ESC [ ? 5 i enable auto print
- In auto print mode a line on display is printed out, whenever the
cursor is moved off a line using LF, FF, VT or wrapping past the right
margin.
scrolling region
────────────────────────────────────────────────────────────────────
ESC [ <t>;<b> r set scrolling region top row = <t>, bottom row = <b>
(1)
character sets
────────────────────────────────────────────────────────────────────
ESC <G> < select multinational character set as <G>
ESC <G> A select UK character set as <G> (1)
ESC <G> B select ASCII character set as <G> (1)
ESC <G> K select German character set as <G>
ESC <G> 0 select graphic character set as <G> (1)
where <G> = ( means G0
= ) means G1
= * means G2
= + means G3
SI (^O) Assign G0 character set to GL (1)
SO (^N) Assign G1 character set to GL (1)
ESC ~ Assign G1 character set to GR
ESC n Assign G2 character set to GL
ESC } Assign G2 character set to GR
ESC o Assign G3 character set to GL
ESC | Assign G3 character set to GR
- GL are characters from 32 to 127
- GR are characters from 160 to 254
ASCII, UK, german, graphic character set
┌────────────┬─────────────┬─────────────────┐
│ dec ASC UK │ dec ASC ger │ dec ASC ger gph │
├────────────┼─────────────┼─────────────────┤
│ 32 │ 64 @ │ 96 ` │
│ 33 ! │ 65 A │ 97 a ▒ │
│ 34 " │ 66 B │ 98 b │
│ 35 # £ │ 67 C │ 99 c │
│ 36 $ │ 68 D │ 100 d │
│ 37 % │ 69 E │ 101 e │
│ 38 & │ 70 F │ 102 f ° │
│ 39 ' │ 71 G │ 103 g ± │
│ 40 ( │ 72 H │ 104 h │
│ 41 ) │ 73 I │ 105 i │
│ 42 * │ 74 J │ 106 j ┘ │
│ 43 + │ 75 K │ 107 k ┐ │
│ 44 , │ 76 L │ 108 l ┌ │
│ 45 - │ 77 M │ 109 m └ │
│ 46 . │ 78 N │ 110 n ┼ │
│ 47 / │ 79 O │ 111 o ─ │
│ 48 0 │ 80 P │ 112 p ─ │
│ 49 1 │ 81 Q │ 113 q ─ │
│ 50 2 │ 82 R │ 114 r ─ │
│ 51 3 │ 83 S │ 115 s ─ │
│ 52 4 │ 84 T │ 116 t ├ │
│ 53 5 │ 85 U │ 117 u ┤ │
│ 54 6 │ 86 V │ 118 v ┴ │
│ 55 7 │ 87 W │ 119 w ┬ │
│ 56 8 │ 88 X │ 120 x │ │
│ 57 9 │ 89 Y │ 121 y ≤ │
│ 58 : │ 90 Z │ 122 z ≥ │
│ 59 ; │ 91 [ Ä │ 123 { ä π │
│ 60 < │ 92 \ Ö │ 124 | ö ╪ │
│ 61 = │ 93 ] Ü │ 125 } ü £ │
│ 62 > │ 94 ^ │ 126 ~ ß ∙ │
│ 63 ? │ 95 _ │ 127 │
└────────────┴─────────────┴─────────────────┘
Multinational/ISO character set
┌─────────────────────────┬────────────────────┬───────────────────┐
│ dec meaning │ dec meaning │ dec meaning │
├─────────────────────────┼────────────────────┼───────────────────┤
│ 160 ▓ fill character │ 192 A `A │ 224 à `a │
│ 161 ¡ ! inverted │ 193 A 'A │ 225 á 'a │
│ 162 ¢ cent sign │ 194 A ^A │ 226 â ^a │
│ 163 £ pound sign │ 195 A ~A │ 227 a ~a │
│ 164 sun (ISO) │ 196 Ä "A │ 228 ä "a │
│ 165 ¥ Yen sign │ 197 Å °A │ 229 å °a │
│ 166 | vert. bar (ISO) │ 198 Æ AE │ 230 æ ae │
│ 167 paragraph sign │ 199 Ç ,C │ 231 ç ,c │
│ 168 sun │ 200 E `E │ 232 è `e │
│ 169 C Copyright symbol │ 201 É 'E │ 233 é 'e │
│ 170 ª feminine ord. │ 202 E ^E │ 234 ê ^e │
│ 171 « << │ 203 E "E │ 235 ë "e │
│ 172 ¬ not sign (ISO) │ 204 I `I │ 236 ì `i │
│ 173 ─ dash (ISO) │ 205 I 'I │ 237 í 'i │
│ 174 R registered (ISO) │ 206 I ^I │ 238 î ^i │
│ 175 - hor. bar (ISO) │ 207 I "I │ 239 ï "i │
│ 176 ° degree sign │ 208 D -D (ISO) │ 240 d d (ISO) │
│ 177 ± plus/minus │ 209 Ñ ~N │ 241 ñ ~n │
│ 178 ² superscript 2 │ 210 O `O │ 242 ò `o │
│ 179 ⁿ superscript 3 │ 211 O 'O │ 243 ó 'o │
│ 180 ' ' (ISO) │ 212 O ^O │ 244 ô ^o │
│ 181 µ greek my │ 213 O ~O │ 245 o ~o │
│ 182 paragraph P │ 214 Ö "O │ 246 ö "o │
│ 183 ∙ center dot │ 215 Ö OE │ 247 ö oe │
│ 184 , cedilla (ISO) │ 216 φ /O │ 248 φ /o │
│ 185 ┐ upper 1 │ 217 U `U │ 249 ù `u │
│ 186 º masculine ord. │ 218 U 'U │ 250 ú 'u │
│ 187 » >> │ 219 U ^U │ 251 û ^u │
│ 188 ¼ 1/4 │ 220 Ü "U │ 252 ü "u │
│ 189 ½ 1/2 │ 221 Y "Y │ 253 ÿ "y │
│ 190 ¿ 3/4 (ISO) │ 222 P Thorn (ISO) │ 254 P thorn(ISO) │
│ 191 ¿ ? inverted │ 223 ß sharp s │ 255 ÿ "y (ISO) │
└─────────────────────────┴────────────────────┴───────────────────┘
8-Bit Control Codes equivalence
────────────────────────────────────────────────────────────────────
132 = ESC D Cursor down
133 = ESC E Cursor to start of next line
136 = ESC H Set tab stop at cursor pos
141 = ESC M Cursor up
144 = ESC P Introduce device control string
155 = ESC [ Introduce control sequence
156 = ESC \ End device control string
157 = ESC ] Operating System Command (ignored up to 156)
158 = ESC ^ Privacy Message (ignored up to 156)
159 = ESC _ Application Program Command (ignored up to 156)
keys
────────────────────────────────────────────────────────────────────
Function keys
┌────────────┬──────────────┬────────────┐
│ original │ IBM PC │ sends │
│ DEC key │ key │ │
├────────────┼──────────────┼────────────┤
│ PF1 (1) │ F1 │ ESC O P │
│ PF2 (1) │ F2 │ ESC O Q │
│ PF3 (1) │ F3 │ ESC O R │
│ PF4 (1) │ F4 │ ESC O S │
│ │ │ │
│ F6 │ Shift F6 │ ESC [ 17 ~ │
│ F7 │ Shift F7 │ ESC [ 18 ~ │
│ F8 │ Shift F8 │ ESC [ 19 ~ │
│ F9 │ Shift F9 │ ESC [ 20 ~ │
│ F10 │ Shift F10 │ ESC [ 21 ~ │
│ F11 │ Alt F1 │ ESC [ 23 ~ │
│ F12 │ Alt F2 │ ESC [ 24 ~ │
│ F13 │ Alt F3 │ ESC [ 25 ~ │
│ F14 │ Alt F4 │ ESC [ 26 ~ │
│ Help │ Alt F5 (F11) │ ESC [ 28 ~ │
│ Do │ Alt F6 (F12) │ ESC [ 29 ~ │
│ F17 │ Alt F7 │ ESC [ 31 ~ │
│ F18 │ Alt F8 │ ESC [ 32 ~ │
│ F19 │ Alt F9 │ ESC [ 33 ~ │
│ F20 │ Alt F10 │ ESC [ 34 ~ │
└────────────┴──────────────┴────────────┘
Numerical keypad keys
┌────────────┬────────┬─────────────┬─────────────┐
│ original │ IBM PC │ sends in │ sends in │
│ DEC key │ key on │ numerical │ application │
│ │ keypad │ keypad mode │ mode │
├────────────┼────────┼─────────────┼─────────────┤
│ 0 (1) │ 0 │ 0 │ ESC O p │
│ 1 (1) │ 1 │ 1 │ ESC O q │
│ 2 (1) │ 2 │ 2 │ ESC O r │
│ 3 (1) │ 3 │ 3 │ ESC O s │
│ 4 (1) │ 4 │ 4 │ ESC O t │
│ 5 (1) │ 5 │ 5 │ ESC O u │
│ 6 (1) │ 6 │ 6 │ ESC O v │
│ 7 (1) │ 7 │ 7 │ ESC O w │
│ 8 (1) │ 8 │ 8 │ ESC O x │
│ 9 (1) │ 9 │ 9 │ ESC O y │
│ - (1) │ - │ - │ ESC O m │
│ , (1) │ * │ * │ ESC O l │
│ . (1) │ . │ . │ ESC O n │
│ Return (1) │ + │ + │ ESC O M │
└────────────┴────────┴─────────────┴─────────────┘
NUMLOCK must be pressed!
Cursor keys
┌────────────┬─────────┬───────────┬──────────────┐
│ original │ IBM PC │ cursor │ application │
│ DEC key │ key │ mode │ mode │
├────────────┼─────────┼───────────┼──────────────┤
│ up (1) │ up │ ESC [ A │ ESC O A │
│ down (1) │ down │ ESC [ B │ ESC O B │
│ right (1) │ right │ ESC [ C │ ESC O C │
│ left (1) │ left │ ESC [ D │ ESC O D │
└────────────┴─────────┴───────────┴──────────────┘
Edit keys (vt220)
┌─────────────┬───────────┬───────────┐
│ original │ IBM PC │ sends │
│ DEC key │ key │ │
├─────────────┼───────────┼───────────┤
│ Find │ End │ ESC [ 1 ~ │
│ Insert Here │ Ins │ ESC [ 2 ~ │
│ Remove │ Del │ ESC [ 3 ~ │
│ Select │ Home │ ESC [ 4 ~ │
│ Prev Scrn │ PgUp │ ESC [ 5 ~ │
│ Next Scrn │ PgDn │ ESC [ 6 ~ │
│ Shift Tab │ Shift Tab │ ESC [ Z │
└─────────────┴───────────┴───────────┘
┌───────────────────────────────────┐
│ ┌───────────────────────────────┐ │
│ │ Tektronix 4010/4014 Commands │ │
│ └───────────────────────────────┘ │
└───────────────────────────────────┘
RS P1 - draw point P1 at (x,y)
────────────────────────────────────────────────────────────────────
FS P1 P2 P3 ... - draw line from point P1 to P2 to P3 ...
────────────────────────────────────────────────────────────────────
P1, P2, P3 consist of the following 4/5 bytes
highy │7│6│5│4│3│2│1│0│
│ │ │ │ │ │ │ └── Bit 7 of y
│ │ │ │ │ │ └─── Bit 8 of y
│ │ │ │ │ └──── Bit 9 of y
│ │ │ │ └───── Bit 10 of y
│ │ │ └────── Bit 11 of y
│ │ └─────── 1 always
│ └──────── 0 always
└───────── 0 always
extra │7│6│5│4│3│2│1│0│ if tektronix 4014
│ │ │ │ │ │ │ └── Bit 0 of x
│ │ │ │ │ │ └─── Bit 1 of x
│ │ │ │ │ └──── Bit 0 of y
│ │ │ │ └───── Bit 1 of y
│ │ │ └────── 0 always
│ │ └─────── 1 always
│ └──────── 1 always
└───────── 0 always
lowy │7│6│5│4│3│2│1│0│
│ │ │ │ │ │ │ └── Bit 2 of y
│ │ │ │ │ │ └─── Bit 3 of y
│ │ │ │ │ └──── Bit 4 of y
│ │ │ │ └───── Bit 5 of y
│ │ │ └────── Bit 6 of y
│ │ └─────── 1 always
│ └──────── 1 always
└───────── 0 always
highx │7│6│5│4│3│2│1│0│
│ │ │ │ │ │ │ └── Bit 7 of x
│ │ │ │ │ │ └─── Bit 8 of x
│ │ │ │ │ └──── Bit 9 of x
│ │ │ │ └───── Bit 10 of x
│ │ │ └────── Bit 11 of x
│ │ └─────── 0 always
│ └──────── 1 always
└───────── 0 always
lowx │7│6│5│4│3│2│1│0│
│ │ │ │ │ │ │ └── Bit 2 of x
│ │ │ │ │ │ └─── Bit 3 of x
│ │ │ │ │ └──── Bit 4 of x
│ │ │ │ └───── Bit 5 of x
│ │ │ └────── Bit 6 of x
│ │ └─────── 0 always
│ └──────── 1 always
└───────── 0 always
- In Tektronix 4010 emulation extra byte is not sent.
- If a part of P1 and P2 is the same it may be dropped in P2 as
long as the sequence is clear, lowx must always be sent.
ESC ENQ - enquire for terminal status
────────────────────────────────────────────────────────────────────
ALPHA MODE - send back (status byte, alpha cursor position, GIN
terminator)
GRAPH MODE - send back (status byte, graphic cursor position, GIN
terminator)
GIN MODE - send back (crosshair position, GIN terminator) and
leave GIN mode
status byte │7│6│5│4│3│2│1│0│
│ │ │ │ │ │ │ └── 1 always
│ │ │ │ │ │ └─── margin (0 or 1)
│ │ │ │ │ └──── mode (0=alpha, 1=graph)
│ │ │ │ └───── 0 always
│ │ │ └────── 0 always (configured printer?)
│ │ └─────── 1 always
│ └──────── 0 always
└───────── 0 always
cursor position (4 bytes)
highy │7│6│5│4│3│2│1│0│
│ │ │ │ │ │ │ └── Bit 7 of y
│ │ │ │ │ │ └─── Bit 8 of y
│ │ │ │ │ └──── Bit 9 of y
│ │ │ │ └───── Bit 10 of y
│ │ │ └────── Bit 11 of y
│ │ └─────── 1 always
│ └──────── 0 always
└───────── 0 always
lowy │7│6│5│4│3│2│1│0│
│ │ │ │ │ │ │ └── Bit 2 of y
│ │ │ │ │ │ └─── Bit 3 of y
│ │ │ │ │ └──── Bit 4 of y
│ │ │ │ └───── Bit 5 of y
│ │ │ └────── Bit 6 of y
│ │ └─────── 1 always
│ └──────── 0 always
└───────── 0 always
highx │7│6│5│4│3│2│1│0│
│ │ │ │ │ │ │ └── Bit 7 of x
│ │ │ │ │ │ └─── Bit 8 of x
│ │ │ │ │ └──── Bit 9 of x
│ │ │ │ └───── Bit 10 of x
│ │ │ └────── Bit 11 of x
│ │ └─────── 1 always
│ └──────── 0 always
└───────── 0 always
lowx │7│6│5│4│3│2│1│0│
│ │ │ │ │ │ │ └── Bit 2 of x
│ │ │ │ │ │ └─── Bit 3 of x
│ │ │ │ │ └──── Bit 4 of x
│ │ │ │ └───── Bit 5 of x
│ │ │ └────── Bit 6 of x
│ │ └─────── 1 always
│ └──────── 0 always
└───────── 0 always
GIN terminator
none - end GIN mode = 0 (default)
CR - end GIN mode = 1
CR, EOT - end GIN mode = 2
- end GIN mode can be set in conex.ini
ESC FF - clear screen
────────────────────────────────────────────────────────────────────
ESC SUB - enter GIN (graphical input) mode
────────────────────────────────────────────────────────────────────
- crosshair is displayed, which can be moved by cursor keys or
mouse
- When a character is pressed, it will be transmitted including
crosshair position and GIN mode is left.
CHAR, crosshair position, GIN terminator
CHAR character pressed on keyboard
ESC ` ... e - select line drawing type
────────────────────────────────────────────────────────────────────
line type
ESC ` ───────────────-
ESC a - - - - - - - -
ESC b ───- ───-
ESC c ────- - ────- -
ESC d ─────────- ─-
ESC e ────── - - -
┌───────────────────────┐
│ ┌───────────────────┐ │
│ │ Programmable keys │ │
│ └───────────────────┘ │
└───────────────────────┘
Control keys
┌───────────┬────────────┬────────────┬────────────┐
│ NUL 0 ^@ │ BS. 8 ^H │ DLE 16 ^P │ CAN 24 ^X │
│ SOH 1 ^A │ HT. 9 ^I │ DC1 17 ^Q │ EM. 25 ^Y │
│ STX 2 ^B │ LF. 10 ^J │ DC2 18 ^R │ SUB 26 ^Z │
│ ETX 3 ^C │ VT. 11 ^K │ DC3 19 ^S │ ESC 27 ^[ │
│ EOT 4 ^D │ FF. 12 ^L │ DC4 20 ^T │ FS. 28 ^\ │
│ ENQ 5 ^E │ CR. 13 ^M │ NAK 21 ^U │ GS. 29 ^] │
│ ACK 6 ^F │ SO. 14 ^N │ SYN 22 ^V │ RS. 30 ^^ │
│ BEL 7 ^G │ SI. 15 ^O │ ETB 23 ^W │ US. 31 ^_ │
└───────────┴────────────┴────────────┴────────────┘
Numerical keys
┌────────┬─────────┬───────────┬────────────┐
│ │ + Shift │ + Control │ + Alt │
├────────┼─────────┼───────────┼────────────┤
│ NK- - │ #N- - │ ^N- - │ @N- - │
│ NK+ + │ #N+ + │ ^N+ + │ @N+ + │
│ NK1 1 │ │ ^N/ / │ @N/ / │
│ NK2 2 │ │ ^N* * │ @N* * │
│ NK3 3 │ │ │ @NE Enter │
│ NK4 4 │ │ │ │
│ NK5 5 │ #N5 5 │ ^N5 5 │ │
│ NK6 6 │ │ │ │
│ NK7 7 │ │ │ │
│ NK8 8 │ │ │ │
│ NK9 9 │ │ │ │
│ NK. . │ │ │ │
└────────┴─────────┴───────────┴────────────┘
Cursor keys
┌────────────────┬──────────────┬────────────────┬────────────────┐
│ │ + Shift │ + Control │ + Alt │
├────────────────┼──────────────┼────────────────┼────────────────┤
│ DN. down │ #DN down │ ^DN down │ @DN down │
│ UP. up │ #UP up │ ^UP up │ @UP up │
│ LT. left │ #LT left │ ^LT left │ @LT left │
│ RT. right │ #RT right │ ^RT right │ @RT right │
│ PDN page down │ #PD page dn │ ^PD page down │ @PD page down │
│ PUP page up │ #PU page up │ ^PU page up │ @PU page up │
│ HOM home │ #HM home │ ^HM home │ @HM home │
│ END end │ #ED end │ ^ED end │ @ED end │
│ INS insert │ #IN insert │ ^IN insert │ @IN insert │
│ DEL delete │ #DL delete │ ^DL delete │ @DL delete │
│ │ #TB tab │ ^TB tab │ @TB tab │
│ │ │ ^PS print scn │ @ES escape │
│ │ │ │ @BS backspace │
│ │ │ │ @CR CR │
└────────────────┴──────────────┴────────────────┴────────────────┘
Alt combinations
┌────────────┬────────────┬────────────┬────────────┐
│ @-A alt+A │ @-J alt+J │ @-S alt+S │ @-1 alt+1 │
│ @-B alt+B │ @-K alt+K │ @-T alt+T │ @-2 alt+2 │
│ @-C alt+C │ @-L alt+L │ @-U alt+U │ @-3 alt+3 │
│ @-D alt+D │ @-M alt+M │ @-V alt+V │ @-4 alt+4 │
│ @-E alt+E │ @-N alt+N │ @-W alt+W │ @-5 alt+5 │
│ @-F alt+F │ @-O alt+O │ @-X alt+X │ @-6 alt+6 │
│ @-G alt+G │ @-P alt+P │ @-Y alt+Y │ @-7 alt+7 │
│ @-H alt+H │ @-Q alt+Q │ @-Z alt+Z │ @-8 alt+8 │
│ @-I alt+I │ @-R alt+R │ @-0 alt+0 │ @-9 alt+9 │
└────────────┴────────────┴────────────┴────────────┘
Function keys
┌──────────┬──────────┬───────────┬──────────┐
│ │ + Shift │ + Control │ + Alt │
├──────────┼──────────┼───────────┼──────────┤
│ F01 F1 │ #F1 F1 │ ^F1 F1 │ @F1 F1 │
│ F02 F2 │ #F2 F2 │ ^F2 F2 │ @F2 F2 │
│ F03 F3 │ #F3 F3 │ ^F3 F3 │ @F3 F3 │
│ F04 F4 │ #F4 F4 │ ^F4 F4 │ @F4 F4 │
│ F05 F5 │ #F5 F5 │ ^F5 F5 │ @F5 F5 │
│ F06 F6 │ #F6 F6 │ ^F6 F6 │ @F6 F6 │
│ F07 F7 │ #F7 F7 │ ^F7 F7 │ @F7 F7 │
│ F08 F8 │ #F8 F8 │ ^F8 F8 │ @F8 F8 │
│ F09 F9 │ #F9 F9 │ ^F9 F9 │ @F9 F9 │
│ F10 F10 │ #10 F10 │ ^10 F10 │ @10 F10 │
│ F11 F11 │ #11 F11 │ ^11 F11 │ @11 F11 │
│ F12 F12 │ #12 F12 │ ^12 F12 │ @12 F12 │
└──────────┴──────────┴───────────┴──────────┘
Init session string
┌────────────────┬────────────────┐
│ IN0 session 0 │ IN5 session 5 │
│ IN1 session 1 │ IN6 session 6 │
│ IN2 session 2 │ IN7 session 7 │
│ IN3 session 3 │ IN8 session 8 │
│ IN4 session 4 │ IN9 session 9 │
└────────────────┴────────────────┘
┌──────────────────────────┐
│ ┌─────────────────────┐ │
│ │ Format of CONEX.INI │ │
│ └─────────────────────┘ │
└──────────────────────────┘
Format of input parameters in CONEX.INI
234 - decimal number (default = 0)
$234 - hexadecimal number (default = 0)
'a - ASCII character "a"
"abc" - string of characters
- The version number of the INI-file must exactly correspond to version
number of CONEX, otherwise it will be ignored (gives a warning).
- Parameters always follow a section header, (esp. "Common
parameters"), which must exactly be written as indicated.
If a section header is not found, default values will be taken.
- Parameters must be seperated with ",", the number of fields should
exactly correspond to the number of parameters of the specified
section.
- Empty fields are interpreted as 0 in case of a number or as an empty
string.
- Blanks and carriage returns outside of parameters are ignored.
- Parameter types can be mixed, i.e. "abcd"$66 103"g"'h gives "abcdefgh".
- Parameters in the INI-file are not checked for consistencies, so be
cautious, if you alter the INI-file directly. Most parameters in
CONEX.INI can be set in CONEX itself and saved by ALT-S.
CONEX 6.2
Common parameters
────────────────────────────────────────────────────────────────────
# meaning
1 Normal character attribute
2 Bold character attribute
3 Underlined character attribute
4 Bold and underline character attribute
5 Attribute of error messages at bottom of screen
6 Normal character attribute in status line
7 Highlighted character attribute in status line
8 Attribute of macro display in status line
9 Normal character attribute in help menu
10 Highlighted character attribute in help menu
11 Attribute of chapters in help menu
12 Normal character attribute in windows
13 Highlighted character attribute in windows
14 Attribute of instruction line at bottom of line
15 Attribute of shadow of window
16 Normal character attribute in listing window
17 Highlighted characters attribute in listing window
18 Attribute of number of bytes in listing window
19 Normal character attribute in file transfer mode
20 Highlighted character attribute in file transfer mode
21 Graphic card (not used, self detected)
22 Plot size (0=DIN A4, 1=DIN A3)
23 Plot aspect
24 Plot margin in mm
25 Plot velocity (0 ... 9 = 0 ... 40)
26 Insert option when entering strings in windows (0=overwrite, 1=insert)
27 Append file with Alt-W (0=overwrite, 1=append)
28 Quote character for character with bit 8 set in kermit protocol
29 Repeat character in kermit protocol
30 Help page (0=version/author, 1=default keys, 2=user defined
keys)
31 Reserved
32 Number of lines per page on printer output
33 IO address of COM1 (0=read from BIOS, $3f8=normal value)
34 IO address of COM2 (0=read from BIOS, $2f8=normal value)
35 IO address of COM3 (0=read from BIOS, I don't know the normal value)
36 IO address of COM4 (0=read from BIOS, I don't know the normal value)
37 Interrupt number of COM1 (0=not present, 4=default)
38 Interrupt number of COM2 (0=not present, 3=default)
39 Interrupt number of COM3 (0=not present, 4=default)
40 Interrupt number of COM4 (0=not present, 3=default)
41 Rotate interrupt controller priority (0=interrupts from serial line
are served last (default), 1=interrupts from serial line are served
first) only if port=COM
42 automatically read ini file (0 = no, 1 = yes)
43 host table name (only BW/TCP)
! end of section
Session dependent parameters
────────────────────────────────────────────────────────────────────
1 Host name (max. 16 bytes)
2 Prompt (max 16 bytes)
3 Answer back message (max 20 bytes)
4 Port (0=COM, 1=Int14, 2=LAT, 3=PC/TCP, 4=BW/TCP, 5=Netbios)
5 Port number (1 - 4)
6 Baud rate (0=50, 1=75, 2=110, 3=150, 4=200, 5=300, 6=600, 7=1200,
8=1800, 9=2400, 10=3600, 11=4800, 12=9600, 13=19200, 14=38400,
15=57600, 16=115200)
7 Bits/parity (0=7 none, 1=7 even, 2=7 odd, 3=7 mark, 4=8 none,
5=8 even, 6=8 odd)
8 Number of stop bits (0=1, 1=2)
9 Duplex (0=half, 1=full)
10 Protocol (0=none, 1=hardware, 2=xon/xoff)
11 Outbound kermit packets: packet length
12 Outbound kermit packets: time out
13 Outbound kermit packets: number of padding characters
14 Outbound kermit packets: padding character
15 Outbound kermit packets: EOL character
16 Outbound kermit packets: quote control characters
17 Outbound kermit packets: 8th bit quote character (0 = not activated)
18 Outbound kermit packets: checksum type (0=1, 1=2, 2=3 bytes CRC)
19 Outbound kermit packets: quote of repeat character
20 Outbound kermit packets: window size
21 Inbound kermit packets: packet length
22 Inbound kermit packets: time out (not used)
23 Inbound kermit packets: number of padding characters
24 Inbound kermit packets: padding character
25 Inbound kermit packets: end of packet character
26 Inbound kermit packets: control bit quote character
27 Inbound kermit packets: 8th bit quote character (0 = not activated)
28 Inbound kermit packets: checksum type
29 Inbound kermit packets: repeat character (0 = not activated)
30 Inbound kermit packets: window size
31 Kermit mode: maximal number of retries
32 Break length (Alt-B)
33 Emulation (0=none, 1=VT100, 2=VT102, 3=VT220, 4=VT320)
34 Bits (0=7-Bit, 1=8-Bit emulation)
35 Status line type (ALT-L)
36 Graphic enabled (ALT-G)
37 End GIN mode (0=none, 1=CR, 2=CR,EOT)
38 Active character set 1 (0=US, 1=UK, 2=German, 3=graphic, 4=multinational,
5=user)
39 Active character set 2 (0=US, 1=UK, 2=German, 3=graphic, 4=multinational,
5=user)
40 Telnet port (default 23)
41 Telnet connection timeout in millisec
! end of section
- Parameters (1 - 41 !) must be repeated for every session (10 times)
Keyboard translation
────────────────────────────────────────────────────────────────────
─┐
1 Key to be redefined () │
2 Label of key ├─ repeat this part for every key definition
3 New definition of key │
! end of key definition │
─┘
! end of keyboard translation section
Dial sequence
────────────────────────────────────────────────────────────────────
1 Prefix to dial number
2 Suffix to dial number
3 Messages returned by modem seperated with |
1st part = answer if connected
all other parts = answer if connection failed
! end of section
- parameter 1 and 2 may contain <W...> or <R...> commands.
User defined character set
────────────────────────────────────────────────────────────────────
1 String with character map from 32 to 127. (Alt-M, char set 1: User)
2 String with character map from 160 to 255. (Alt-M, char set 2: User)
! end of section