diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-08 11:02:10 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-08 11:02:10 -0500 |
commit | d743018c4c0ae459a9586898a4dca132eecad3cb (patch) | |
tree | f124a8b19fa4e965b71891fb213c98bef5f895d3 /tests/csi.rs | |
parent | cadcb7fe6e4d5ca1d5e867f76e3e2bca742149fa (diff) | |
download | vt100-rust-d743018c4c0ae459a9586898a4dca132eecad3cb.tar.gz vt100-rust-d743018c4c0ae459a9586898a4dca132eecad3cb.zip |
fix tests for the attribute reset change
Diffstat (limited to 'tests/csi.rs')
-rw-r--r-- | tests/csi.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/csi.rs b/tests/csi.rs index e0cfa39..e5e19cd 100644 --- a/tests/csi.rs +++ b/tests/csi.rs @@ -180,7 +180,7 @@ fn ed() { ); assert_eq!( parser.screen().contents_formatted(), - b"\x1b[?25h\x1b[H\x1b[J\x1b[5;5H" + b"\x1b[?25h\x1b[m\x1b[H\x1b[J\x1b[5;5H" ); parser.process(b"\x1b[41m\x1b[J"); @@ -207,7 +207,7 @@ fn ed() { assert_eq!( parser.screen().contents_formatted(), format!( - "\x1b[?25h\x1b[H\x1b[J{}{}\x1b[41m{}\r\n{}{}\x1b[5;5H", + "\x1b[?25h\x1b[m\x1b[H\x1b[J{}{}\x1b[41m{}\r\n{}{}\x1b[5;5H", "\r\n".repeat(4), "\x1b[C".repeat(4), "\x1b[X\x1b[C".repeat(76), @@ -232,7 +232,7 @@ fn ed() { ); assert_eq!( parser.screen().contents_formatted(), - b"\x1b[?25h\x1b[H\x1b[J\x1b[5;5H" + b"\x1b[?25h\x1b[m\x1b[H\x1b[J\x1b[5;5H" ); parser.process(b"\x1b[41m\x1b[1J"); @@ -259,7 +259,7 @@ fn ed() { assert_eq!( parser.screen().contents_formatted(), format!( - "\x1b[?25h\x1b[H\x1b[J\x1b[41m{}{}\x1b[5;5H", + "\x1b[?25h\x1b[m\x1b[H\x1b[J\x1b[41m{}{}\x1b[5;5H", format!("{}\r\n", "\x1b[X\x1b[C".repeat(80)).repeat(4), "\x1b[X\x1b[C".repeat(5), ) @@ -281,7 +281,7 @@ fn ed() { ); assert_eq!( parser.screen().contents_formatted(), - b"\x1b[?25h\x1b[H\x1b[J\x1b[5;5H" + b"\x1b[?25h\x1b[m\x1b[H\x1b[J\x1b[5;5H" ); parser.process(b"\x1b[41m\x1b[2J"); @@ -308,7 +308,7 @@ fn ed() { assert_eq!( parser.screen().contents_formatted(), format!( - "\x1b[?25h\x1b[H\x1b[J\x1b[41m{}{}\x1b[5;5H", + "\x1b[?25h\x1b[m\x1b[H\x1b[J\x1b[41m{}{}\x1b[5;5H", format!("{}\r\n", "\x1b[X\x1b[C".repeat(80)).repeat(23), "\x1b[X\x1b[C".repeat(80), ) @@ -403,7 +403,7 @@ fn el() { ); assert_eq!( parser.screen().contents_formatted(), - b"\x1b[?25h\x1b[H\x1b[J\x1b[5;5H" + b"\x1b[?25h\x1b[m\x1b[H\x1b[J\x1b[5;5H" ); parser.process(b"\x1b[41m\x1b[K"); @@ -422,7 +422,7 @@ fn el() { assert_eq!( parser.screen().contents_formatted(), format!( - "\x1b[?25h\x1b[H\x1b[J{}{}\x1b[41m{}\x1b[5;5H", + "\x1b[?25h\x1b[m\x1b[H\x1b[J{}{}\x1b[41m{}\x1b[5;5H", "\r\n".repeat(4), "\x1b[C".repeat(4), "\x1b[X\x1b[C".repeat(76) @@ -445,7 +445,7 @@ fn el() { ); assert_eq!( parser.screen().contents_formatted(), - b"\x1b[?25h\x1b[H\x1b[J\x1b[5;5H" + b"\x1b[?25h\x1b[m\x1b[H\x1b[J\x1b[5;5H" ); parser.process(b"\x1b[41m\x1b[1K"); @@ -464,7 +464,7 @@ fn el() { assert_eq!( parser.screen().contents_formatted(), format!( - "\x1b[?25h\x1b[H\x1b[J{}\x1b[41m{}\x1b[5;5H", + "\x1b[?25h\x1b[m\x1b[H\x1b[J{}\x1b[41m{}\x1b[5;5H", "\r\n".repeat(4), "\x1b[X\x1b[C".repeat(5), ) @@ -486,7 +486,7 @@ fn el() { ); assert_eq!( parser.screen().contents_formatted(), - b"\x1b[?25h\x1b[H\x1b[J\x1b[5;5H" + b"\x1b[?25h\x1b[m\x1b[H\x1b[J\x1b[5;5H" ); parser.process(b"\x1b[41m\x1b[2K"); @@ -505,7 +505,7 @@ fn el() { assert_eq!( parser.screen().contents_formatted(), format!( - "\x1b[?25h\x1b[H\x1b[J{}\x1b[41m{}\x1b[5;5H", + "\x1b[?25h\x1b[m\x1b[H\x1b[J{}\x1b[41m{}\x1b[5;5H", "\r\n".repeat(4), "\x1b[X\x1b[C".repeat(80), ) |