Change parse_escape to return an AnsiSequence

This commit is contained in:
Dániel Buga
2020-10-05 12:19:37 +02:00
parent dafb7d7f08
commit abce537ffe
2 changed files with 4 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ impl<'a> Iterator for AnsiParseIterator<'a> {
if let Ok(ret) = res {
self.dat = &ret.0;
Some(ret.1)
Some(Output::Escape(ret.1))
}else{
let pos = self.dat[(loc+1)..].find('\u{1b}');
if let Some(loc) = pos {