summaryrefslogtreecommitdiff
path: root/bin/cursor-linux
blob: c283ccccbfee5ba70aaf4a06538c99af2c75b665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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