File: infobox2

package info (click to toggle)
xdialog 2.2.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,044 kB
  • ctags: 540
  • sloc: ansic: 4,985; sh: 4,525; makefile: 63; sed: 16
file content (18 lines) | stat: -rwxr-xr-x 454 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

(sleep 2;echo "XXX";echo "New message";echo "XXX";sleep 2;echo "XXXX") | \
Xdialog --title "INFO BOX 2" --infobox "Infobox test" 10 32 0

case $? in
	1)
		echo "Cancel pressed.";;
	255)
		echo "Box closed.";;
esac

(sleep 2;echo "XXX";echo "New";echo "\\n";echo "message";echo "XXX";sleep 2;echo "XXXX") | \
Xdialog --title "INFO BOX 2" --no-button --infobox "Infobox test (no button)" 10 32 0

if [ "$?" = 255 ] ; then
	echo "Box closed."
fi