Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ttcomtester/tests/bcetest.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10521 - (hide annotations) (download) (as text)
Fri Jan 20 16:03:38 2023 UTC (14 months, 3 weeks ago) by zmatsuo
File MIME type: text/x-sh
File size: 828 byte(s)
add communication test tool
1 nmaya 10300 #!/bin/sh
2    
3     pause() {
4     printf "==> push return <== "
5     read dummy
6     }
7    
8     CSI() {
9     while [ $# -gt 0 ]; do
10     printf "\033[%s" $1
11     shift
12     done
13     }
14    
15     SGR() {
16     CSI ""
17     printf "%s" $1
18     shift
19     while [ $# -gt 0 ]; do
20     printf ";%s" $1
21     shift
22     done
23    
24     printf m
25     }
26    
27     bcetest() {
28     CSI 2J H
29    
30     SGR 31 46; printf "EL"; CSI K; SGR 0; echo
31     SGR 31 46; printf "ICH"; CSI 999@; SGR 0; echo
32     SGR 31 46; printf "DCH"; CSI 999P; SGR 0; echo
33     SGR 31 46; printf "ECH"; CSI 999X; SGR 0; echo
34     SGR 31 46; CSI L; printf "IL"; SGR 0; echo
35     SGR 31 46 7; printf "EL+SGR7"; CSI K; SGR 0; echo
36     SGR 31 46; printf "ED"; CSI J; SGR 0; echo; echo; echo
37    
38     printf "EL"; CSI K; SGR 0; echo
39     SGR 7; printf "EL+SGR7"; CSI K; SGR 0; echo
40     printf "ED"; CSI J; SGR 0; echo; echo; echo
41     }
42    
43     bcetest
44    
45     pause
46    
47     CSI "?5h"
48    
49     bcetest
50    
51     pause
52    
53     CSI "?5l"
54     CSI 9999H

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26