hschumann2/TempleOS-Source-Code
0838
1 2 Char Overview3 4A Character is a single byte holding an ASCII code for a letter, num or sym.5The TempleOS term is a U8.6 7Standard ASCII values range from 0 to 127. Values below 32 are ctrl key's. So,8an ASCII #3 is a <CTRL-c>. TempleOS uses a few nonstandard values below 32.9See Char Definitions.10 11ASCII #5 is the cursor location in a saved file.12ASCII #28 is <SHIFT-ESC>.13ASCII #31 is a <SHIFT-SPACE>.14 15TempleOS ASCII is 8-bit instead of 7-bit, so it also uses the range from16128-255. Press <CTRL-ALT-a> to see shapes for 128-255. Technically, <CTRL-ALT-17a> are scrn codes.18 19A Key is typically specified with a scan code. TempleOS scan codes contain the20key value in the lowest U8, and flags in the upper 3 bytes. See21Scan Code Flags and Scan Codes.22 23TempleOS stores scan codes in 8 bytes.24 Byte 0 is the code. NumPad keys, SHIFT, ALT, CTRL and GUI keys combined.25 Byte 1-3 are flags26 27The upper 4-bytes are copied from lower 4-bytes.28 Byte 4 is the code. Left, Right and NumPad keys distinct.29 Byte 5-7 are flags30 31Run the program ::/Demo/MsgLoop.HC to examine scan code. Press <CTRL-SHIFT-l>32and "Insert ASCII/ScanCode".33 34See Key Allocations and CKbdStateGlbls.35 36A String is a bunch of ASCII characters terminated with a zero.37 