aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-19 03:40:51 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-19 03:42:50 -0500
commit4227bdedde837347ecd83510b976ab13d474b2b9 (patch)
tree366e5246b9b796c28b26187471214ae18d3fb823 /tests
parentb45a23b68ea8eb27f2b616f3f1fc32532cdcf03c (diff)
downloadvt100-rust-4227bdedde837347ecd83510b976ab13d474b2b9.tar.gz
vt100-rust-4227bdedde837347ecd83510b976ab13d474b2b9.zip
fix up some more issues with row_formatted
handle cursor positioning and wrapping a bit better
Diffstat (limited to 'tests')
-rw-r--r--tests/data/fixtures/attrs.in1
-rw-r--r--tests/data/fixtures/attrs/10.json17
-rw-r--r--tests/data/fixtures/attrs/10.typescript1
3 files changed, 19 insertions, 0 deletions
diff --git a/tests/data/fixtures/attrs.in b/tests/data/fixtures/attrs.in
index 0edae4e..4fe65cb 100644
--- a/tests/data/fixtures/attrs.in
+++ b/tests/data/fixtures/attrs.in
@@ -7,3 +7,4 @@ f\x1b[1mo\x1b[3mo\x1b[4mo\x1b[7mo
\x1bcfoo
\x1b[1;2H\x1b[4;7mo\x1b[m
\x1b[1;1H\x1b[4;7m\x1b[X\x1b[m
+\x1bc\x1b[1;79H\x1b[31mab
diff --git a/tests/data/fixtures/attrs/10.json b/tests/data/fixtures/attrs/10.json
new file mode 100644
index 0000000..b6cb478
--- /dev/null
+++ b/tests/data/fixtures/attrs/10.json
@@ -0,0 +1,17 @@
+{
+ "contents": " ab",
+ "cells": {
+ "0,78": {
+ "contents": "a",
+ "fgcolor": "1"
+ },
+ "0,79": {
+ "contents": "b",
+ "fgcolor": "1"
+ }
+ },
+ "cursor_position": [
+ 0,
+ 80
+ ]
+} \ No newline at end of file
diff --git a/tests/data/fixtures/attrs/10.typescript b/tests/data/fixtures/attrs/10.typescript
new file mode 100644
index 0000000..ba2cb07
--- /dev/null
+++ b/tests/data/fixtures/attrs/10.typescript
@@ -0,0 +1 @@
+cab \ No newline at end of file