aboutsummaryrefslogblamecommitdiffstats
path: root/tests/dsr-cpr.sh
blob: b08c03b2b95e4d44080c311ebdaae8f59fe099fa (plain) (tree)







































                               
#!/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'