aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parse/ansi_test.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2024-02-12 06:26:20 -0600
committerRobin Jarry <robin@jarry.cc>2024-02-12 13:48:50 +0100
commita60f2c19a0a962167067547c2a74988012cf2f44 (patch)
treee3c98d3d0f7ac934eb6ee0c4cb19b1a1377cc2a8 /lib/parse/ansi_test.go
parentcdc90afbaa1a6ff7d0900b6ce904a1e51e31bcd1 (diff)
downloadaerc-a60f2c19a0a962167067547c2a74988012cf2f44.tar.gz
style: use vaxis style everywhere
Replace all tcell.Style objects with vaxis.Style objects Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/parse/ansi_test.go')
-rw-r--r--lib/parse/ansi_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/parse/ansi_test.go b/lib/parse/ansi_test.go
index 6aa95b18..5d8e8572 100644
--- a/lib/parse/ansi_test.go
+++ b/lib/parse/ansi_test.go
@@ -110,7 +110,7 @@ func TestParser(t *testing.T) {
{
name: "8 bit color: foreground and background",
input: "\x1b[31;41mhello, world",
- expectedString: "\x1b[m\x1b[38;5;1;48;5;1mhello, world\x1b[m",
+ expectedString: "\x1b[m\x1b[38;5;1m\x1b[48;5;1mhello, world\x1b[m",
expectedLen: 12,
},
{
@@ -128,7 +128,7 @@ func TestParser(t *testing.T) {
{
name: "16 bit color: foreground and background",
input: "\x1b[91;101mhello, world",
- expectedString: "\x1b[m\x1b[38;5;9;48;5;9mhello, world\x1b[m",
+ expectedString: "\x1b[m\x1b[38;5;9m\x1b[48;5;9mhello, world\x1b[m",
expectedLen: 12,
},
{
@@ -152,7 +152,7 @@ func TestParser(t *testing.T) {
{
name: "256 color: foreground and background",
input: "\x1b[38;5;20;48;5;20mhello, world",
- expectedString: "\x1b[m\x1b[38;5;20;48;5;20mhello, world\x1b[m",
+ expectedString: "\x1b[m\x1b[38;5;20m\x1b[48;5;20mhello, world\x1b[m",
expectedLen: 12,
},
{
@@ -194,7 +194,7 @@ func TestParser(t *testing.T) {
{
name: "true color: foreground and background",
input: "\x1b[38;2;200;200;200;48;2;0;0;0mhello, world",
- expectedString: "\x1b[m\x1b[38;2;200;200;200;48;2;0;0;0mhello, world\x1b[m",
+ expectedString: "\x1b[m\x1b[38;2;200;200;200m\x1b[48;2;0;0;0mhello, world\x1b[m",
expectedLen: 12,
},
}