Commander X16 PETSCII codes

0 1 2 3 4 5 6 7 8 9 A B C D E F
0 swap fg/bg color Stop Underline white Bold Bell Backspace Tab LF Italics Outline Return lo/up charset enable ISO mode
1 F9 cursor down reverse on Home Delete F10 F11 F12 Shift+Tab red cursor right green blue
2
3
4
5
6
7
8 orange Run Help F1 F3 F5 F7 F2 F4 F6 F8 Shift-Return up/gfx charset disable ISO mode
9 black cursor up reverse off Clear Insert brown pink dark grey grey light green light blue light grey purple cursor left yellow cyan
A
B
C
D
E
F

Notes:

  1. Codes $00-$1F and $80-$9F are control codes. Printing them will cause a change in screen layout or behaviour, not an actual character displayed.
  2. Codes $60-$7F and $E0-$FE are not used. Although you can print them, these are, actually, copies of codes $C0-$DF and $A0-$BE.
  3. Code $FF is the BASIC token of the π (pi) symbol. It is converted internally to code $DE when printed and, vice versa, code $DE is converted to $FF when fetched from the screen. However, when reading the keyboard buffer, you will find code $DE for Shift-↑ (up arrow) as no conversion takes place yet.

Commander X16 notes: