Browse Subversion Repository
Contents of /branches/ttcomtester/tests/ansi.sh
Parent Directory
| Revision Log
Revision 10521 -
( show annotations)
( download)
( as text)
Fri Jan 20 16:03:38 2023 UTC
(13 months, 2 weeks ago)
by zmatsuo
File MIME type: text/x-sh
File size: 334 byte(s)
add communication test tool
| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
printf "\\033[0m\n" |
| 4 |
i=30 |
| 5 |
while [ $i -lt 38 ]; do |
| 6 |
j=40 |
| 7 |
while [ $j -lt 48 ]; do |
| 8 |
printf "\\033[${i};${j}m Forward:%d Back:%d \\033[0m " $i $j |
| 9 |
for k in 1 4 5 7; do |
| 10 |
printf "\\033[${i};${j};${k}m decolate:%d \\033[0m " $k |
| 11 |
k=$(($k+1)) |
| 12 |
done |
| 13 |
echo "" |
| 14 |
j=$(($j+1)) |
| 15 |
done |
| 16 |
i=$(($i+1)) |
| 17 |
done |
|