Tested out dialog a bit

This commit is contained in:
2013-12-24 16:11:10 +01:00
parent 187223e542
commit eb98644bed
5 changed files with 67 additions and 5 deletions

16
Labb7/test_dialog_checklist.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Jack-Benny Persson
# LX13
# Testing checklists in dialg
dialog --checklist "Choose your editor" 10 60 3 \
vi "The vi editor" off emacs "The Emacs editor" \
off nano "The nano editor" off 2> /tmp/editorchoice
Editor=`cat /tmp/editorchoice | sed 's/\"//g'`
echo "You chose the $Editor editor, starting"
$Editor
exit 0