aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs5
-rw-r--r--src/table.rs2
-rw-r--r--src/table.rs.in4
3 files changed, 9 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d66f6bb..9b2c047 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -20,6 +20,11 @@
//!
//! Just type `:q` to exit.
//!
+//! # Differences from original state machine description
+//!
+//! * UTF-8 Support for Input
+//! * OSC Strings can be terminated by 0x07
+//!
//! [`Parser`]: struct.Parser.html
//! [`Perform`]: trait.Perform.html
//! [Paul Williams' ANSI parser state machine]: http://vt100.net/emu/dec_ansi_parser
diff --git a/src/table.rs b/src/table.rs
index d2034b8..5bb52c0 100644
--- a/src/table.rs
+++ b/src/table.rs
@@ -290,7 +290,7 @@ pub static STATE_CHANGE: [[u8; 256]; 16] =
255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8,
255u8, 255u8, 255u8, 255u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8,
0u8, 0u8],
- [112u8, 112u8, 112u8, 112u8, 112u8, 112u8, 112u8, 112u8, 112u8, 112u8,
+ [112u8, 112u8, 112u8, 112u8, 112u8, 112u8, 112u8, 12u8, 112u8, 112u8,
112u8, 112u8, 112u8, 112u8, 112u8, 112u8, 112u8, 112u8, 112u8, 112u8,
112u8, 112u8, 112u8, 112u8, 0u8, 112u8, 0u8, 0u8, 112u8, 112u8, 112u8,
112u8, 144u8, 144u8, 144u8, 144u8, 144u8, 144u8, 144u8, 144u8, 144u8,
diff --git a/src/table.rs.in b/src/table.rs.in
index f5a838d..3017e33 100644
--- a/src/table.rs.in
+++ b/src/table.rs.in
@@ -173,7 +173,9 @@ pub static STATE_CHANGE: [[u8; 256]; 16] = vt_state_table! {
},
State::OscString => {
- 0x00...0x17 => Action::Ignore,
+ 0x00...0x06 => Action::Ignore,
+ 0x07 => State::Ground,
+ 0x08...0x17 => Action::Ignore,
0x19 => Action::Ignore,
0x1c...0x1f => Action::Ignore,
0x20...0x7f => Action::OscPut,