Browse Subversion Repository
Contents of /branches/ttcomtester/tests/colorchange-test.rb
Parent Directory
| Revision Log
Revision 10521 -
( show annotations)
( download)
Fri Jan 20 16:03:38 2023 UTC
(13 months, 2 weeks ago)
by zmatsuo
File size: 567 byte(s)
add communication test tool
| 1 |
#!/usr/bin/ruby |
| 2 |
|
| 3 |
def bcetest(oscType, updateStr, setStr) |
| 4 |
print updateStr |
| 5 |
print "\e[J" |
| 6 |
print setStr |
| 7 |
puts "===== OSC #{oscType} test =====" |
| 8 |
print "=>" |
| 9 |
sleep 1 |
| 10 |
|
| 11 |
print "\e[K EL" |
| 12 |
sleep 1 |
| 13 |
|
| 14 |
print "\n\n" |
| 15 |
print updateStr |
| 16 |
puts "BCE Updated\n" |
| 17 |
print "=>" |
| 18 |
sleep 1 |
| 19 |
|
| 20 |
print "\e[K EL" |
| 21 |
sleep 1 |
| 22 |
|
| 23 |
print "\e[m\n\n" |
| 24 |
end |
| 25 |
|
| 26 |
print "\e[H\e[2J" |
| 27 |
|
| 28 |
bcetest(4, "\e[48;5;17m", "\e]4;17;#550000\e\\") |
| 29 |
bcetest(104, "\e[48;5;17m", "\e]104;17\e\\") |
| 30 |
bcetest(11, "\e[m", "\e]11;#550000\e\\") |
| 31 |
bcetest(111, "\e[m", "\e]111\e\\") |
| 32 |
|
| 33 |
sleep 1 |
| 34 |
print "\e]104;200\e\\\e]111\e\\\e[m" |
|