summaryrefslogtreecommitdiff
path: root/.config/shells/colorsrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/shells/colorsrc')
-rwxr-xr-x.config/shells/colorsrc45
1 files changed, 45 insertions, 0 deletions
diff --git a/.config/shells/colorsrc b/.config/shells/colorsrc
new file mode 100755
index 0000000..506f67e
--- /dev/null
+++ b/.config/shells/colorsrc
@@ -0,0 +1,45 @@
+#!/bin/sh
+## Reset to normal: \033[0m
+NORM="\033[0m"
+
+## Colors:
+BLACK="\033[0;30m"
+GRAY="\033[1;30m"
+RED="\033[0;31m"
+LRED="\033[1;31m"
+GREEN="\033[0;32m"
+LGREEN="\033[1;32m"
+YELLOW="\033[0;33m"
+LYELLOW="\033[1;33m"
+BLUE="\033[0;34m"
+LBLUE="\033[1;34m"
+PURPLE="\033[0;35m"
+PINK="\033[1;35m"
+CYAN="\033[0;36m"
+LCYAN="\033[1;36m"
+LGRAY="\033[0;37m"
+WHITE="\033[1;37m"
+
+## Backgrounds
+BLACKB="\033[0;40m"
+REDB="\033[0;41m"
+GREENB="\033[0;42m"
+YELLOWB="\033[0;43m"
+BLUEB="\033[0;44m"
+PURPLEB="\033[0;45m"
+CYANB="\033[0;46m"
+GREYB="\033[0;47m"
+
+## Attributes:
+UNDERLINE="\033[4m"
+BOLD="\033[1m"
+INVERT="\033[7m"
+
+## Cursor movements
+CUR_UP="\033[1A"
+CUR_DN="\033[1B"
+CUR_LEFT="\033[1D"
+CUR_RIGHT="\033[1C"
+
+## Start of display (top left)
+SOD="\033[1;1f"