Update with new autosizing code, use -1 -1 now
This commit is contained in:
parent
8b6840ff55
commit
dc092b5e4c
@ -6,10 +6,10 @@ $DIALOG --title "CHECKLIST BOX" --clear \
|
||||
present a list of choices which can be turned on or \n\
|
||||
off. If there are more items than can fit on the \n\
|
||||
screen, the list will be scrolled. You can use the \n\
|
||||
UP/DOWN arrow keys, the first letter of the choice as a \n\
|
||||
UP/DOWN arrow keys, the first letter of the choice as a\n\
|
||||
hot key, or the number keys 1-9 to choose an option. \n\
|
||||
Press SPACE to toggle an option on/off. \n\n\
|
||||
Which of the following are fruits?" 20 61 5 \
|
||||
Which of the following are fruits?" -1 -1 5 \
|
||||
"Apple" "It's an apple." off \
|
||||
"Dog" "No, that's not my dog." ON \
|
||||
"Orange" "Yeah, that's juicy." off \
|
||||
|
@ -8,7 +8,7 @@ not pause waiting for input after displaying
|
||||
the message. The pause here is only introduced
|
||||
by the sleep command, not by dialog.
|
||||
|
||||
You have 10 seconds to read this..." 10 52
|
||||
You have 10 seconds to read this..." -1 -1
|
||||
|
||||
stty -echo
|
||||
sleep 10
|
||||
|
@ -8,9 +8,9 @@ to input a string as the answer. You can \n\
|
||||
input strings of length longer than the \n\
|
||||
width of the input box, in that case, the \n\
|
||||
input field will be automatically scrolled. \n\
|
||||
You can use BACKSPACE, LEFT, RIGHT, HOME, END \n\
|
||||
You can use BACKSPACE, LEFT, RIGHT, HOME, END\n\
|
||||
to correct errors. \n\n\
|
||||
Try inputing your name below:" 16 51 "John Smith" 2> /tmp/inputbox.tmp.$$
|
||||
Try inputing your name below:" -1 -1 "John Smith" 2> /tmp/inputbox.tmp.$$
|
||||
|
||||
retval=$?
|
||||
|
||||
|
@ -10,7 +10,7 @@ You can use the UP/DOWN arrow keys, the first \n\
|
||||
letter of the choice as a hot key, or the \n\
|
||||
number keys 1-9 to choose an option.\n\
|
||||
Try it now!\n\n\
|
||||
Choose the OS you like:" 20 59 4 \
|
||||
Choose the OS you like:" -1 -1 4 \
|
||||
"FreeBSD 2.0" "A Real Operating System for Real Users" \
|
||||
"Linux" "Another free Unix Clone for 386/486" \
|
||||
"OS/2" "IBM OS/2" \
|
||||
|
@ -2,9 +2,9 @@
|
||||
DIALOG=${DIALOG=/usr/bin/dialog}
|
||||
|
||||
$DIALOG --title "MESSAGE BOX" --clear \
|
||||
--msgbox "Hi, this is a simple message box. You can use this to \
|
||||
display any message you like. The box will remain until \
|
||||
you press the ENTER key." 10 41
|
||||
--msgbox "Hi, this is a simple message box. You can use this to\n\
|
||||
display any message you like. The box will remain until\n\
|
||||
you press the ENTER key." -1 -1
|
||||
|
||||
case $? in
|
||||
0)
|
||||
|
@ -6,10 +6,10 @@ $DIALOG --title "RADIOLIST BOX" --clear \
|
||||
present a list of choices, one of them can be turned \n\
|
||||
on or off. If there are more items than can fit on the \n\
|
||||
screen, the list will be scrolled. You can use the \n\
|
||||
UP/DOWN arrow keys, the first letter of the choice as a \n\
|
||||
UP/DOWN arrow keys, the first letter of the choice as a\n\
|
||||
hot key, or the number keys 1-9 to choose an option. \n\
|
||||
Press SPACE to toggle an option on/off. \n\n\
|
||||
Which of the following are fruits?" 20 61 5 \
|
||||
Which of the following are fruits?" -1 -1 5 \
|
||||
"Apple" "It's an apple." off \
|
||||
"Dog" "No, that's not my dog." ON \
|
||||
"Orange" "Yeah, that's juicy." off \
|
||||
|
Loading…
x
Reference in New Issue
Block a user