terminology/tests/dsr-cpr.sh

41 lines
633 B
Bash
Executable File

#!/bin/sh
# fill space with E
printf '\033#8'
#set color
printf '\033[46;31;3m'
# cursor to 7,4
printf '\033[7;4H'
# Request cursor position
printf '\033[6n'
# Request cursor position (dec)
printf '\033[?6n'
sleep 1
# set top/bottom margins:
printf '\033[10;20r'
# allow left/right margins
printf '\033[?69h'
# set left/right margins:
printf '\033[5;15s'
# cursor to 17,14
printf '\033[17;14H'
# Request cursor position
printf '\033[6n'
# Request cursor position (dec)
printf '\033[?6n'
sleep 1
# restrict cursor
printf '\033[?6h'
# Request cursor position
printf '\033[6n'
# Request cursor position (dec)
printf '\033[?6n'