Fix printing of escape codes

This commit is contained in:
Jeremy Soller 2016-11-20 11:51:37 -07:00
parent d547477c5a
commit 038d1d5a53

View file

@ -124,6 +124,9 @@ impl Screen for TextScreen {
let _ = self.write(b"\x08", true);
}
},
b'\x1B' => {
let _ = self.write(b"^[", true);
},
b'\n' | b'\r' => {
self.cooked.push_back(b);
while let Some(c) = self.cooked.pop_front() {