diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-11 12:31:59 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-11 12:31:59 +0100 |
commit | 0bbeae5f0f6a295db40b17c3122a0bedd1b90c27 (patch) | |
tree | a568dbec5a70c9ee60a2fec63676d995922a27f6 | |
parent | 6cc84b5cd73d75761febb5dea6195c02801dc759 (diff) |
fix for ask_option size
-rw-r--r-- | src/core/libs/lib-ui.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh index 5f2337e..d3fc5d7 100644 --- a/src/core/libs/lib-ui.sh +++ b/src/core/libs/lib-ui.sh @@ -2,6 +2,7 @@ # TODO: implement 'retry until user does it correctly' everywhere # TODO: at some places we should check if $1 etc is only 1 word because we often depend on that # TODO: standardize. eg everything $1= question/title, $2=default +# TODO: figure out something to make dia windows always big enough, yet fit nicely in the terminal # Taken from setup. we store dialog output in a file. TODO: can't we do this with variables? ASKDEV @@ -345,7 +346,7 @@ _dia_ask_option () DIA_MENU_TITLE=$2 shift 2 - _dia_DIALOG $DEFAULT --colors --title " $DIA_MENU_TITLE " --menu "$DIA_MENU_TEXT" 16 55 8 "$@" 2>$ANSWER #TODO: size not good! dynamically adapt? + _dia_DIALOG $DEFAULT --colors --title " $DIA_MENU_TITLE " --menu "$DIA_MENU_TEXT" 20 80 16 "$@" 2>$ANSWER ret=$? ANSWER_OPTION=`cat $ANSWER` debug "dia_ask_option: User choose $ANSWER_OPTION ($2)" |