1
0

added / changed some CEPT codes

This commit is contained in:
acn 2016-06-02 16:47:49 +02:00
parent 3a1edb0d18
commit 267167769d

126
cept.py
View File

@ -6,81 +6,87 @@ released under GPL
''' '''
CR = "\x0d" CR = "\x0d"
LF = "\x0a"
UMLAUT = "\xc9" UMLAUT = "\xc9"
INI = "\x13" INI = "\x13"
TER = "\x1c" TER = "\x1c"
SEND = "\x1a" SEND = "\x1a"
CURSOR_ON = "\x11" CURSOR_ON = "\x11"
CURSOR_OFF = "\x14"
BSP = "\x08" # backspace BSP = "\x08" # backspace
CLEARLINE = "\x18" CLEARLINE = "\x18"
# TODO: stimmt das?
LEFT = "\x08"
RIGHT = "\x09"
DOWN = "\x0a"
UP = "\x0b"
clear_line24 = ( clear_line24 = (
"\x1f\x58\x41" # Cursor Zeile 24, Spalte 0 "\x1f\x58\x41" # Cursor Zeile 24, Spalte 0
"\x18" # Zeile löschen "\x18" # Zeile löschen
) )
error_prefix = ( error_prefix = (
"\x1f\x2f\x40\x58" # Servicesprung Zeile 24 "\x1f\x2f\x40\x58" # Servicesprung Zeile 24
) )
error_suffix = ( error_suffix = (
"\x1f\x2f\x4f" # Ende Servicesprung "\x1f\x2f\x4f" # Ende Servicesprung
"\x1f\x58\x41" # Cursor Zeile 24, Spalte 0 "\x1f\x58\x41" # Cursor Zeile 24, Spalte 0
) )
eingabezeile = ( eingabezeile = (
"\x1b" # Hintergrund blau ganze Reihe "\x1b" # Hintergrund blau ganze Reihe
"\x23" "\x23"
"\x21" "\x21"
"\x54" "\x54"
"\x44" # Hintergrund blau, Vordergrund gelb "\x44" # Hintergrund blau, Vordergrund gelb
"\x83" ) "\x83" )
init_screen = ( init_screen = (
"\x1f" "\x2f" "\x42" # Grundzustand parallel "\x1f" "\x2f" "\x42" # Grundzustand parallel
"\x9b" "\x9b"
"\x30" "\x32" "\x3b" "\x32" "\x33" "\x55" # Scrollbereich ist Zeile 2 - 23 "\x30" "\x32" "\x3b" "\x32" "\x33" "\x55" # Scrollbereich ist Zeile 2 - 23
"\x9b" "\x9b"
"\x32" "\x60" # Implizites Scrollen an "\x32" "\x60" # Implizites Scrollen an
"\x1b" "\x23" "\x21" "\x54" # Hintergrund blau ganze Reihe "\x1b" "\x23" "\x21" "\x54" # Hintergrund blau ganze Reihe
"\x94" "\x83" # Hintergrund blau, Vordergrund gelb "\x94" "\x83" # Hintergrund blau, Vordergrund gelb
"\x42" "\x74" "\x78" "\x20" "\x53" "\x65" "\x72" "\x76" "\x65" "\x72" # Btx Server "\x42" "\x74" "\x78" "\x20" "\x53" "\x65" "\x72" "\x76" "\x65" "\x72" # Btx Server
"\x20" "\x2d" "\x20" "\x4E" "\x6F" "\x72" "\x62" "\x65" "\x72" "\x74" # - Norbert "\x20" "\x2d" "\x20" "\x4E" "\x6F" "\x72" "\x62" "\x65" "\x72" "\x74" # - Norbert
"\x20" "\x4B" "\x65" "\x68" "\x72" "\x65" "\x72" "\x2c" "\x20" # Kehrer, "\x20" "\x4B" "\x65" "\x68" "\x72" "\x65" "\x72" "\x2c" "\x20" # Kehrer,
"\x41" "\x70" "\x72" "\x69" "\x6C" "\x20" "\x32" "\x30" "\x31" "\x36" # April 2016 "\x41" "\x70" "\x72" "\x69" "\x6C" "\x20" "\x32" "\x30" "\x31" "\x36" # April 2016
"\x90" "\x87" # Hintergrund schwarz, Vordergrund weisz "\x90" "\x87" # Hintergrund schwarz, Vordergrund weisz
"\x0d" "\x0a" # CR/LF "\x0d" "\x0a" # CR/LF
"\x11" # Cursor on "\x11" # Cursor on
) )
btxlogo = ( btxlogo = (
"\x1f\x2f\x42" # Grundzustand parallel "\x1f\x2f\x42" # Grundzustand parallel
"\x1b\x7e" # Zeichensatz G1 rechts "\x1b\x7e" # Zeichensatz G1 rechts
"\x9b\x31\x40" # Farbtafel 1 (Halbtöne) "\x9b\x31\x40" # Farbtafel 1 (Halbtöne)
"\x1b\x23\x20\x54" # ganzer Schirm blau "\x1b\x23\x20\x54" # ganzer Schirm blau
"\x1f\x3d1# 200961a\x1f" # Link zur Demo-Startseite 200961a "\x1f\x3d1# 200961a\x1f" # Link zur Demo-Startseite 200961a
"\x1f\x43\x48\xb8\xa3\x12\x57\xe4" "\x1f\x43\x48\xb8\xa3\x12\x57\xe4"
"\x1f\x44\x47\xea\xa0\x12\x59\xb5" "\x1f\x44\x47\xea\xa0\x12\x59\xb5"
"\x1f\x45\x47\xea \xe8\xfc\xdf\x12\x49\xfc\xb4 \xb5" "\x1f\x45\x47\xea \xe8\xfc\xdf\x12\x49\xfc\xb4 \xb5"
"\x1f\x46\x47\xea \xe8\xdf\x12\x44\xa3\x12\x45\xdf\x12\x44\xb4 \xb5" "\x1f\x46\x47\xea \xe8\xdf\x12\x44\xa3\x12\x45\xdf\x12\x44\xb4 \xb5"
"\x1f\x47\x47\xea \xaa\xdf\xdf\xdf\xaf\xa1 \xfc\xdf\xdf\xfc \xa2\xaf\xdf\xdf\xdf\xa5 \xb5" "\x1f\x47\x47\xea \xaa\xdf\xdf\xdf\xaf\xa1 \xfc\xdf\xdf\xfc \xa2\xaf\xdf\xdf\xdf\xa5 \xb5"
"\x1f\x48\x47\xea \xa2\xe3\xf8\xfe\xdf\xea\xdf\x12\x43\xb5\xdf\xfd\xf4\xb3\xa1 \xb5" "\x1f\x48\x47\xea \xa2\xe3\xf8\xfe\xdf\xea\xdf\x12\x43\xb5\xdf\xfd\xf4\xb3\xa1 \xb5"
"\x1f\x49\x47\xea \xdf\x12\x43\xea\xdf\x12\x43\xb5\xdf\x12\x43 \xb5" "\x1f\x49\x47\xea \xdf\x12\x43\xea\xdf\x12\x43\xb5\xdf\x12\x43 \xb5"
"\x1f\x4a\x47\xea \xdf\x12\x43\xfd\xf3\xaf\xaf\xf3\xfe\xdf\x12\x43 \xb5" "\x1f\x4a\x47\xea \xdf\x12\x43\xfd\xf3\xaf\xaf\xf3\xfe\xdf\x12\x43 \xb5"
"\x1f\x4b\x47\xea \xdf\x12\x4d \xb5" # Ende Telefon-Logo "\x1f\x4b\x47\xea \xdf\x12\x4d \xb5" # Ende Telefon-Logo
"\x1f\x4c\x47\xea \x12\x59\xb5" "\x1f\x4c\x47\xea \x12\x59\xb5"
"\x1f\x4d\x47\xea \x12\x44\xbc\xb4\xf0\xb0\xf4\xe0\xb0\xf0\xb0\xec\xa4\xf0\xb0\xb0\xb0\xf4 \x12\x44\xb5" # Logo-Text 1 "\x1f\x4d\x47\xea \x12\x44\xbc\xb4\xf0\xb0\xf4\xe0\xb0\xf0\xb0\xec\xa4\xf0\xb0\xb0\xb0\xf4 \x12\x44\xb5" # Logo-Text 1
"\x1f\x4e\x47\xea \x12\x44\xbf\xb1\xbd\xa5\xb5\xea \xb5\xb5\xea \xbd\xa5\xb9\xb1\xb5 \x12\x44\xb5" # Logo-Text 2 "\x1f\x4e\x47\xea \x12\x44\xbf\xb1\xbd\xa5\xb5\xea \xb5\xb5\xea \xbd\xa5\xb9\xb1\xb5 \x12\x44\xb5" # Logo-Text 2
"\x1f\x4f\x47\xea \x12\x44\xa1\xa1\xa3\xa1\xa3\xa2 \xa3\xa1\xa2 \xa3\xa1\xa1\xa1\xa3 \x12\x44\xb5" # Logo-Text 3 "\x1f\x4f\x47\xea \x12\x44\xa1\xa1\xa3\xa1\xa3\xa2 \xa3\xa1\xa2 \xa3\xa1\xa1\xa1\xa3 \x12\x44\xb5" # Logo-Text 3
"\x1f\x50\x47\xa2\xe4\xa0\x12\x57\xb8\xa1" "\x1f\x50\x47\xa2\xe4\xa0\x12\x57\xb8\xa1"
"\x1f\x51\x49\xa3\x12\x57\r\n" "\x1f\x51\x49\xa3\x12\x57\r\n"
"\x9b\x31\x40" # Farbtafel 1 "\x9b\x31\x40" # Farbtafel 1
"\x87\x19\x50\x12\x67" # Strich "\x87\x19\x50\x12\x67" # Strich
"\x9b\x30\x40" # Farbtafel 0 "\x9b\x30\x40" # Farbtafel 0
"\x87 Herzlich Willkommen in\r\n" "\x87 Herzlich Willkommen in\r\n"
"\x87 retroText!\r\n" "\x87 retroText!\r\n"
"\x9b\x31\x40" # Farbtafel 1 "\x9b\x31\x40" # Farbtafel 1
"\x87\x19\x50\x12\x67" "\x87\x19\x50\x12\x67"
"\x9b\x30\x40" # Farbtafel 0 "\x9b\x30\x40" # Farbtafel 0
"\x83Mit # fortfahren\r\n" "\x83Mit # fortfahren\r\n"
) )