aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tbc.sh36
-rw-r--r--tests/tests.results1
2 files changed, 37 insertions, 0 deletions
diff --git a/tests/tbc.sh b/tests/tbc.sh
new file mode 100755
index 0000000..5627055
--- /dev/null
+++ b/tests/tbc.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+# fill space with E
+printf '\033#8'
+# set color
+printf '\033[46;31;3m'
+# move to 0;0
+printf '\033[H'
+# set tabs
+printf '\033H\033H\033[3C\033[W\033[4C\033[0W\033[5C\033H\033[6C\033H'
+printf '\033[7C\033H\033[8C\033H\033[9C'
+printf '\nTabs set:'
+# show # on tabs
+printf '\n#\t#\t#\t#\t#\t#\t#\t#\t#\t#\t#'
+# remove a tab
+printf '\n# \033[0g@ \033[g@ Two tabs removed'
+printf '\n#\t#\t#\t#\t#\t#\t#\t#\t#\t#\t#\t#'
+# remove all tabs
+printf '\n\033[2gRemove all tabs:'
+printf '\n#\t#'
+# set tabs
+printf '\nAdd them again\033[?5W:'
+printf '\r\033H\033H\033[3C\033[W\033[4C\033[0W\033[5C\033H\033[6C\033H'
+printf '\033[7C\033H\033[8C\033H\033[9C'
+printf '\n#\t#\t#\t#\t#\t#\t#\t#\t#\t#\t#'
+# remove all tabs
+printf '\n\033[3gRemove all tabs:'
+printf '\n#\t#'
+# set tabs
+printf '\nAdd them again\033[?5W:'
+printf '\r\033H\033H\033[3C\033[W\033[4C\033[0W\033[5C\033H\033[6C\033H'
+printf '\033[7C\033H\033[8C\033H\033[9C'
+printf '\n#\t#\t#\t#\t#\t#\t#\t#\t#\t#\t#'
+# remove all tabs
+printf '\n\033[5gRemove all tabs:'
+printf '\n#\t#'
diff --git a/tests/tests.results b/tests/tests.results
index e97ef43..da071f0 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -64,3 +64,4 @@ su.sh 591185f42b75daa61726217033a17eaf
sd.sh 4bfda7ec3e6192acab077de2bc270525
decst8c.sh 0ea805e8f4c2626ce66c566a10548d0f
ctc.sh d35eeacdb2e99f5ac8cc3c4e8d72f8b0
+tbc.sh d0216e4056e5ab1cb4d411b6d6074785