aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ctc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ctc.sh')
-rwxr-xr-xtests/ctc.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/ctc.sh b/tests/ctc.sh
new file mode 100755
index 0000000..6fd5773
--- /dev/null
+++ b/tests/ctc.sh
@@ -0,0 +1,29 @@
+#!/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#'
+printf '\n#\t#\t#\t#\t#\t#\t#\t#\t#\t#\t#'
+# remove and add a tab
+printf '\n# \033[2W@ \033[0W# \033[W#(One tab removed, two added)'
+printf '\n#\t#\t#\t#\t#\t#\t#\t#\t#\t#\t#\t#'
+# remove all tabs
+printf '\n\033[4WRemove all tabs:'
+printf '\n#\t#\t#\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[5WRemove all tabs:'
+printf '\n#\t#\t#\t#'