missed the empty graphics mode sequence

This commit is contained in:
David Bittner
2019-05-10 10:26:25 -04:00
parent 0fbea712c2
commit 9520aeafbf
2 changed files with 12 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -2,7 +2,7 @@
# It is not intended for manual editing.
[[package]]
name = "ansi-parser"
version = "0.6.2"
version = "0.6.3"
dependencies = [
"nom 4.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
]

View File

@@ -117,12 +117,22 @@ named!(
)
);
named!(
graphics_mode4<&str, AnsiSequence>,
do_parse!(
tag!("[m") >>
(AnsiSequence::SetGraphicsMode(vec![]))
)
);
named!(
graphics_mode<&str, AnsiSequence>,
alt!(
graphics_mode1
| graphics_mode2
| graphics_mode3)
| graphics_mode3
| graphics_mode4
)
);
named!(