From c6f0e2b53d71eacb1b8ad7e6487e0416b79cdb7c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 16 Sep 2014 20:45:45 -0400 Subject: test script --- test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..2c43bab --- /dev/null +++ b/test.py @@ -0,0 +1,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()) -- cgit v1.2.3-54-g00ecf