Skip to main content

Module codepage

Module codepage 

Source
Expand description

The code pages behind CTerm’s built-in fonts (IDs 1-31): what a byte in one is as Unicode, and back, for typing, pasting and copying text when the BBS shows its screen in one of them. Bytes below 0x80 are ASCII in all of them. Generated from Python’s codec tables, and for haik8 (7), ARMSCII-8 (15) and CP1131 (31), which it lacks, from SyncTERM’s (src/conio/utf8_codepages.c), where bytes with no character of their own show CP437’s, as its fonts draw them.

Structs§

CodePage
A code page’s upper half: the character each byte 0x80-0xFF is.

Functions§

for_font
The code page a CTerm font ID shows, if BadTerm knows it.
screen_codes
What the screen codes of the C64’s and Atari’s fonts (CTerm IDs 32-36) are, for copying their text; they are not for typing (see crate::petscii and crate::atascii for that).