diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-10-31 17:00:41 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-10-31 17:00:41 +0100 |
commit | ba9b80f15ad31509840926f7568ddfc57921ad60 (patch) | |
tree | aed6c2575cfbea7974a1fc59609a2f62e166c391 /src/lib | |
parent | 5356859d1b9a8155007d2f79a880b8ac5ba8a15e (diff) |
lots of changes related to making the choice of the UI between cli and dialog fully transparant. this is a work in progress
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/lib-ui.sh | 32 | ||||
-rw-r--r-- | src/lib/whatsthis.txt | 5 |
2 files changed, 34 insertions, 3 deletions
diff --git a/src/lib/lib-ui.sh b/src/lib/lib-ui.sh index 5cd7ecc..37f316e 100644 --- a/src/lib/lib-ui.sh +++ b/src/lib/lib-ui.sh @@ -58,4 +58,34 @@ gui_ask_bootloader() "None" "\Zb\Z1Warning\Z0\ZB: you must install your own bootloader!" 2>$ANSWER cat $ANSWER } -
\ No newline at end of file + + +# ask the user a password. return is stored in $PASSWORD or $PASSWORD_TYPE +# $1 type (optional. eg 'svn', 'ssh'). +cli_ask_password () +{ + if [ -n "$1" ] + then + true + fi +} + +cli_ask_yesno () +{ +} + +cli_ask_string () +{ +} + + +cli_ask_number () +{ +} + + +cli_ask_option () +{ +} + +
\ No newline at end of file diff --git a/src/lib/whatsthis.txt b/src/lib/whatsthis.txt index 1125767..72e5e15 100644 --- a/src/lib/whatsthis.txt +++ b/src/lib/whatsthis.txt @@ -1,7 +1,7 @@ This directory contains several useful functions and scripts, ready to be used by fifa and it's profiles. -Right now, all this code is taken (and modified) from the 'real' arch linux install scripts +Most of this code is taken (and modified) from the 'real' arch linux install scripts code. (/arch/setup and /arch/quickinst). the modifications are mostly done to make the code more useable and to separate backend code from the user interface (which was tightly coupled in the original scripts) @@ -11,4 +11,5 @@ I couldn't find what license the code is under, but I assume this is okay.. if not let me know. The original code is at http://projects.archlinux.org/?p=installer.git;a=summary -Later on, maybe other code can be put here too. +I also wrote a few functions myself that I didn't find in the official +scripts (mostly separate ui functions) |