terminology/tests/cnl.sh

37 lines
599 B
Bash
Raw Permalink Normal View History

2018-12-24 08:01:11 -08:00
#!/bin/sh
# fill space with E
2018-12-28 08:58:53 -08:00
printf '\033[69;1;1;25;80\044x'
2018-12-24 08:01:11 -08:00
#set color
printf '\033[46;31;3m'
# move to 3; 3
printf '\033[3;3H'
printf 'a\033[Eb'
printf 'c\033[2Ed'
# set top/bottom margins:
printf '\033[10;20r'
# allow left/right margins
printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# fill margin with @
2018-12-28 08:58:53 -08:00
printf '\033[64;10;5;20;15\044x'
2018-12-24 08:01:11 -08:00
# move
printf '\033[19;19H'
printf 'e\033[5Ef'
# set left/right margins:
printf '\033[25;35s'
# fill margin with @
2018-12-28 08:58:53 -08:00
printf '\033[64;10;25;20;35\044x'
2018-12-24 08:01:11 -08:00
# restrict cursor
printf '\033[?6h'
# move
printf '\033[10;10H'
printf 'g\033[5Eh'