This chapter describes the SCO Console mode. This chapter also describes the effects of switching from SCO Console to other emulation modes, including VT, PCTerm, and ASCII Terminal emulation.
6.1 SCO Console Emulation Mode
SCO Console mode is a terminal emulation mode. It uses ANSI sequences with minor modifications to run on a PC, which acts as a SCO UNIX operating system console.
Depending on the terminal status, SCO Console mode for the VT510 transmits ASCII characters (default) or scancode to the host when keys are pressed. Users can specify a keycode by issuing an escape sequence (DECPCTERM) or by keyboard encoding of Set-Up. When in SCO Console mode with the ASCII keycode selected, the terminal behavior is similar to VT mode. When in SCO Console mode with scancode selected, the terminal behavior is similar to VT420 PCTerm mode. Table 6–1 shows the similarities and differences.
Default | SCO Console Mode with | VT Mode | PCTerm | |
---|---|---|---|---|
ASCII Keycodes | Scancodes | |||
Screen display | 25×80 | 25×80 | 24×80 | 24×80 |
Autowrap | On | On | Off | Off |
Autowrap behavior | Like WYSE | Like WYSE | Like VT | Like VT |
Status line | None | None | Local | Local |
Cursor position while switching pages | Saved | Saved | Not saved | Not saved |
Character set | PCTerm (including PC, ISO/ANSI character sets) | VT character set (ISO/ANSI) | ||
CSI 10-12 m | Supported | Supported | Not supported | Not supported |
SU SD |
Acts like IND Acts like RI |
Acts like IND Acts like RI |
Acts like SU Acts like SD |
Acts like SU Acts like SD |
CSI s and CSI u DECSC and DECRC |
Supported Supported |
Supported Supported |
Only DECSC and DECRC are supported. | |
CSI Pn z (switch pages) |
Supported | Supported | Not supported | Not supported |
ESC Q Fn String (Define Function) |
Supported | Supported | Not supported | Not supported |
Transmit flow control | None | None | XON/XOFF | XON/XOFF |
6.1.1 Keyboard
SCO Console mode works with either a PC keyboard or a VT keyboard attached.
6.1.1.1 Local Function Keys in SCO Console Mode
The keys used to perform local functions in SCO Console mode are similar to those used for VT mode (see Chapter 8, Keyboard Processing. Table 6–2 shows the exceptions).
Fn# | Function | VT Layout | EPC Layout |
---|---|---|---|
1 | Hold | Lock/F1 | Scroll Lock |
2 | Lock/F2 | Print Screen | |
3 | Set-Up | Lock/F3 | Caps Lock/Print Screen, Alt/Print Screen |
5 | Break | Lock/F5 | Caps Lock/Pause |
7 | Hard Reset | Lock/Ctrl/F3 | Ctrl/Caps Lock/Print Screen |
8 | Toggle Autoprint | Lock/Ctrl/F2 | Ctrl/Print Screen |
9 | Disconnect | Lock/Shift/F5 | Shift/Caps Lock/Pause |
10 | Send Answerback | Lock/Ctrl/F5 | Ctrl/Caps Lock/Pause |
11 | Print Composed Main Display | Not supported | |
20 | Pan Up | Not supported | |
21 | Pan Down | Not supported | |
24 | Pan Prev Page | Not supported | |
25 | Pan Next Page | Not supported | |
30 | Copy and Paste | Lock/F1 (hold down) | Scroll Lock |
47 | Primary KB language | Lock/Ctrl/Alt/F1 | Caps Lock/Ctrl/Alt/F1 |
48 | Secondary KB language | Lock/Ctrl/Alt/F2 | Caps Lock/Ctrl/Alt/F2 |
53 | ±DEC/IBM PC Style | Not supported |
6.1.1.2 PC Keyboard
Tables 6–3 through 6–8 list the default codes sent by keys in ASCII character code mode.
The keys that can be affected by Caps Lock or Num Lock send a shifted value when in Lock state. If Shift is pressed when Caps Lock or Num Lock is in effect, the key sends its unshifted value. This "Reverse Lock" is the default for a Caps Lock function.
Alt has no effect on the key pressed unless otherwise indicated. A blank in any column means the key is not defined.
Key | Unmodified | Shift | Ctrl | Ctrl/Shift |
---|---|---|---|---|
F1 | ESC[M | ESC[Y | ESC[k | ESC[w |
F2 | ESC[N | ESC[Z | ESC[l | ESC[x |
F3 | ESC[O | ESC[a | ESC[m | ESC[y |
F4 | ESC[P | ESC[b | ESC[n | ESC[z |
F5 | ESC[Q | ESC[c | ESC[o | ESC[@ |
F6 | ESC[R | ESC[d | ESC[p | ESC[[ |
F7 | ESC[S | ESC[e | ESC[q | ESC[< |
F8 | ESC[T | ESC[f | ESC[r | ESC[ ] |
F9 | ESC[U | ESC[g | ESC[s | ESC[^ |
F10 | ESC[V | ESC[h | ESC[t | ESC[_ |
F11 | ESC[W | ESC[i | ESC[u | ESC[' |
F12 | ESC[X | ESC[j | ESC[v | ESC[{ |
Print Screen | Print Screen | ESC[0i | ||
Scroll Lock | Scroll Lock | Scroll Lock | N/A | N/A |
Pause | Break | Break | N/A | N/A |
Key | Unmodified | Shift | Ctrl | Ctrl/Shift |
---|---|---|---|---|
ESC | ESC | ESC | ESC | ESC |
1 | 1 | ! | 1 | ! |
2 | 2 | @ | Nul | Nul |
3 | 3 | # | ESC | ESC |
4 | 4 | $ | FS | FS |
5 | 5 | % | GS | GS |
6 | 6 | ^ | RS | RS |
7 | 7 | & | US | US |
8 | 8 | * | DEL | DEL |
9 | 9 | ( | ||
0 | 0 | ) | ||
- | - | _ | US | US |
= | = | + | ||
Backspace | BS | BS | DEL | DEL |
Tab | HT | ESC[Z | ||
q | q | Q | DC1 | DC1 |
w | w | W | ETB | ETB |
e | e | E | ENQ | ENQ |
r | r | R | DC2 | DC2 |
t | t | T | DC4 | DC4 |
y | y | Y | EM | EM |
u | u | U | NAK | NAK |
i | i | I | HT | HT |
o | o | O | SI | SI |
p | p | P | DLE | DLE |
[ | [ | { | ESC | ESC |
] | ] | } | GS | GS |
\ | \ | | | FS | FS |
Return | CR | CR | LF | LF |
Ctrl | Ctrl | Ctrl | Ctrl | Ctrl |
a | a | A | SOH | SOH |
s | s | S | DC3 | DC3 |
d | d | D | EOT | EOT |
f | f | F | ACK | ACK |
g | g | G | BEL | BEL |
h | h | H | BS | BS |
j | j | J | LF | LF |
k | k | K | VT | VT |
l | l | L | FF | FF |
; | ; | : | ||
' | ' | " | ||
z | z | Z | SUB | SUB |
x | x | X | CAN | CAN |
c | c | C | ETX | ETX |
v | v | V | SYN | SYN |
b | b | B | STX | STX |
n | n | N | SO | SO |
m | m | M | CR | CR |
, | , | < | ||
. | . | > | ||
/ | / | ? | US | US |
Key | Unmodified | Shift | Ctrl | Ctrl/Shift |
---|---|---|---|---|
Insert | ESC[L | ESC[L | ESC[L | ESC[L |
Home | ESC[H | ESC[H | ESC[H | ESC[H |
Page Up | ESC[I | ESC[I | ESC[I | ESC[I |
Delete | DEL | DEL | DEL | DEL |
End | ESC[F | ESC[F | ESC[F | ESC[F |
Page Down | ESC[G | ESC[G | ESC[G | ESC[G |
Key | Unmodified | Shift | Ctrl | Ctrl/Shift |
---|---|---|---|---|
⇑ | ESC[A | ESC[A | ESC[A | ESC[A |
⇓ | ESC[B | ESC[B | ESC[B | ESC[B |
⇒ | ESC[C | ESC[C | ESC[C | ESC[C |
⇐ | ESC[D | ESC[D | ESC[D | ESC[D |
Keypad Function Key | Unmodified | Shift | Ctrl | Ctrl/Shift |
---|---|---|---|---|
Num Lock | Num Lock | Num Lock | DC3 | DC3 |
/ | / | / | ||
* | * | * | ||
7 | ESC[H | 7 | ESC[H | 7 |
8 | ESC[A | 8 | ESC[A | 8 |
9 | ESC[I | 9 | ESC[I | 9 |
- | - | - | - | - |
4 | ESC[D | 4 | ESC[D | 4 |
5 | ESC[E | 5 | ESC[E | 5 |
6 | ESC[C | 6 | ESC[C | 6 |
+ | + | + | + | + |
1 | ESC[F | 1 | ESC[F | 1 |
2 | ESC[B | 2 | ESC[B | 2 |
3 | ESC[G | 3 | ESC[G | 3 |
0 | ESC[L | 0 | ESC[L | 0 |
. | DEL | . | DEL | DEL |
Enter | CR | CR | LF | LF |
Keypad Function Key | Unmodified | Shift | Ctrl | Ctrl/Shift |
---|---|---|---|---|
Numlock | Numlock | Numlock | DC3 | DC3 |
/ | / | / | ||
* | * | * | ||
7 | 7 | ESC[H | ||
8 | 8 | ESC[A | ||
9 | 9 | ESC[I | ||
- | - | - | - | - |
4 | 4 | ESC[D | ||
5 | 5 | ESC[E | ||
6 | 6 | ESC[C | ||
+ | + | + | ||
1 | 1 | ESC[F | ||
2 | 2 | ESC[B | ||
3 | 3 | ESC[G | ||
0 | 0 | ESC[L | ||
. | . | DEL | ||
Enter | CR | CR |
Pressing Alt/. on the numeric keypad sends DEL, not a period.
6.1.1.3 VT Keyboard Key Mapping
More key mapping information is provided in Chapter 8, Keyboard Processing.
- On the main keypad, 8-bit codes are allowed for keyboard input.
- Function keys F1 through F12 send the same codes as F1 through F12 on a PC keyboard. Function keys F13 through F20 send the same codes as F13 through F20 in VT mode, except Do sends an ESC code.
On the editing keypad, VT keyboard keys send the same sequences as the corresponding PC keyboard keys:
PC Keyboard VT Keyboard Insert Insert Here Home Find PageUp Prev Delete Remove End Select PageDown Next - For Autowrap, On is the default.
- On the cursor keypad, SCO Console mode sends the same sequence as VT510 mode.
- The cursor position is saved while switching pages.
- On the numeric keypad, SCO Console mode sends the same sequence as VT510 mode.
- SCO Console mode uses the PCTerm character set.