terminology/tests/xterm-osc-11.sh

25 lines
440 B
Bash
Raw Normal View History

#!/bin/sh
# char width: 7
# char height: 15
# set color
printf '\033[0;31;3m'
# clear screen
printf '\033[2J'
# move to 0; 0
printf '\033[0;0H'
printf 'The purpose of computing is insight, not numbers.\r\n'
printf 'Richard Hamming\r\n'
# invalid colors
printf '\033]11;#ff0\007'
printf '\033]11;#FfFfFfFf\007'
printf '\033]11;fff000\007'
# change background color and then query it
printf '\033]11;#ff00FF\007'
printf '\033]11;?\007'