aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
blob: 2c43bab285d157119704d19a429a7b033ea3c74f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import hexdump

import vt100

vt = vt100.vt100(24, 80)
string = b"foo\033[31m\033[32mb\033[3;7;42ma\033[23mr"
vt.process(string)

hexdump.hexdump(vt.get_string_plaintext(0, 0, 0, 50))
hexdump.hexdump(vt.get_string_formatted(0, 0, 0, 50))
print(vt.cell(0, 4).contents())