diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-01-06 12:33:18 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-01-06 12:33:18 +0100 |
| commit | 270699d4eb1f1d27e2d8905cfbbf0037f07609ed (patch) | |
| tree | 4821b26edcb242f2d8710ea65043d4f7a12cad8f /bin/cursor-linux | |
| parent | 7138f485299e110f59bfea1bc0deda82750104e2 (diff) | |
add cursor color management
Diffstat (limited to 'bin/cursor-linux')
| -rwxr-xr-x | bin/cursor-linux | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/cursor-linux b/bin/cursor-linux new file mode 100755 index 0000000..c283ccc --- /dev/null +++ b/bin/cursor-linux @@ -0,0 +1,13 @@ +#!/bin/sh + +# Set linux console cursor to a non-blinking color. + +case $1 in + (1|r|red) printf '\033[?17;0;64c' ;; + (2|b|blue) printf '\033[?17;0;16c' ;; + (3|g|green) printf '\033[?17;0;32c' ;; + (4|m|magenta) printf '\033[?17;0;80c' ;; + (5|o|orange) printf '\033[?17;0;96c' ;; + (6|c|cyan) printf '\033[?17;0;48c' ;; + (*) echo "usage: $0 blue cyan green magenta orange red" >&2; exit 2 ;; +esac |
