diff --git a/.local/bin/scripts/test-colors b/.local/bin/scripts/test-colors new file mode 100755 index 0000000..d254e0b --- /dev/null +++ b/.local/bin/scripts/test-colors @@ -0,0 +1,25 @@ +#!/usr/bin/python +# https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences + +print("\\033[XXm") + +for i in range(30,37+1): + print("\033[%dm%d\t\t\033[%dm%d" % (i,i,i+60,i+60)); + +print("\033[39m\\033[49m - Reset colour") +print("\\033[2K - Clear Line") +print("\\033[;H OR \\033[;f puts the cursor at line L and column C.") +print("\\033[A Move the cursor up N lines") +print("\\033[B Move the cursor down N lines") +print("\\033[C Move the cursor forward N columns") +print("\\033[D Move the cursor backward N columns") +print("\\033[2J Clear the screen, move to (0,0)") +print("\\033[K Erase to end of line") +print("\\033[s Save cursor position") +print("\\033[u Restore cursor position") +print(" ") +print("\\033[4m Underline on") +print("\\033[24m Underline off") +print("\\033[1m Bold on") +print("\\033[21m Bold off") + diff --git a/.local/bin/scripts/titest b/.local/bin/scripts/test-tiv similarity index 100% rename from .local/bin/scripts/titest rename to .local/bin/scripts/test-tiv