File: test

package info (click to toggle)
xrootconsole 1%3A0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 492 kB
  • sloc: ansic: 5,230; makefile: 105; sh: 3
file content (23 lines) | stat: -rwxr-xr-x 1,946 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# simple test script
# yes, I know the color scheme is painful and wrong. :)


ping -i 5 localhost |./xrootconsole -bw 2 -bd '#000000' -fg 'darkgreen' -bg '#660099' --wrap -geometry +100+260 $@


# testing long lines, column wrapping

#{ while [ 1 ] ; do sleep 1; echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; done; } |./xrootconsole -bw 2 -bd '#000000' -fg '#FF3333' -bg '#660099' --wrap -geometry +100+260 $@

#extra newline bug test
#{ z=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; while [ 1 ] ; do sleep 1; z=x$z; echo $z; done; } |./xrootconsole -bw 2 -bd '#000000' -fg '#FF3333' -bg '#660099' --wrap -geometry +100+260 $@

#bottomup test
#{ z=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; while [ 1 ] ; do sleep 1; z=x$z; echo $z; done; } |./xrootconsole --bottomup -bw 2 -bd '#000000' -fg '#FF3333' -bg '#660099' --wrap -geometry +100+260 $@

#transparency test
#{ z=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; while [ 1 ] ; do sleep 1; z=x$z; echo $z; done; } |./xrootconsole --bottomup -bw 2 -bd '#000000' -fg '#FF3333' --wrap -geometry +100+260 $@

#ansi color test
# echo -ne "\e[mNormal \e[30mBlack \e[31mRed \e[32mGreen \e[33mBrown  \e[34mBlue \e[35mMagena \e[36mCyan \e[37mWhite \e[39mNormal\n\e[1mBold   \e[30mBlack \e[31mRed \e[32mGreen \e[33mYellow \e[34mBlue \e[35mMagena \e[36mCyan \e[37mWhite \e[39mNormal\n\e[mNormal \e[40mBlack \e[41mRed \e[42mGreen \e[43mBrown  \e[44mBlue \e[45mMagena \e[46mCyan \e[47mWhite \e[49mNormal\n\e[5mBlink  \e[40mBlack \e[41mRed \e[42mGreen \e[43mYellow \e[44mBlue \e[45mMagena \e[46mCyan \e[47mWhite \e[49mNormal\n\e[7mInvert" |./xrootconsole -fg '#9966FF'