add test on OSC 52
This commit is contained in:
parent
e4a2bbb0f5
commit
7da500c3f9
|
@ -0,0 +1,48 @@
|
|||
#!/bin/sh
|
||||
|
||||
# fill space with E
|
||||
printf '\033[69;1;1;25;80\044x'
|
||||
|
||||
#set color
|
||||
printf '\033[46;31;3m'
|
||||
|
||||
# List of base64 strings used in this test:
|
||||
# "foobarqux" => Zm9vYmFycXV4Cg==
|
||||
#"Terminology rox" => VGVybWlub2xvZ3kgcm94Cg==
|
||||
#"testing!!!!!" => dGVzdGluZyEhISEhCg==
|
||||
#
|
||||
#
|
||||
#set foobarqux as primary selection
|
||||
printf "\033]52;p;Zm9vYmFycXV4Cg==\033\\"
|
||||
#set 'testing!!!!!' as clipboard selection
|
||||
printf "\033]52;c;dGVzdGluZyEhISEhCg==\033\\"
|
||||
sleep 0.2
|
||||
|
||||
|
||||
# move
|
||||
printf '\033[3;3H'
|
||||
# query primary
|
||||
printf "\033]52;p;?\033\\"
|
||||
sleep 0.2
|
||||
|
||||
# move
|
||||
printf '\033[5;3H'
|
||||
# query clipboard
|
||||
printf "\033]52;c;?\033\\"
|
||||
sleep 0.2
|
||||
|
||||
# move
|
||||
printf '\033[7;3H'
|
||||
# query primary, not explicit
|
||||
printf "\033]52;;?\033\\"
|
||||
sleep 0.2
|
||||
|
||||
# reset primary
|
||||
printf "\033]52;p;\033\\"
|
||||
#set 'testing!!!!!' as clipboard selection
|
||||
printf "\033]52;c;dGVzdGluZyEhISEhCg==\033\\"
|
||||
sleep 0.2
|
||||
# move
|
||||
printf '\033[9;3H'
|
||||
# query primary then clipboard
|
||||
printf "\033]52;pc;?\033\\"
|
|
@ -153,3 +153,4 @@ xterm-colors-rgb.sh 3269d17289a29ccec79598d47db7add7
|
|||
xterm-colors-rgbi.sh 3269d17289a29ccec79598d47db7add7
|
||||
xterm-set-cursor-color.sh e3d64c03d8257d7db7cf72204f4e3b2c
|
||||
csi-38-no-value.sh b2f4d1ab6a3171950371c88b4aae9c58
|
||||
osc_selection.sh 4579ba1bf3b5ca4b13b5701f1d52d597
|
||||
|
|
Loading…
Reference in New Issue