diff options
author | 2013-09-10 07:16:08 +0200 | |
---|---|---|
committer | 2013-09-10 07:16:08 +0200 | |
commit | 456a9d34fff548856cc1876253ca66db9abd0898 (patch) | |
tree | 0219e86d002728a5c7d127993628816f6f2bd929 /ufed-curses-checklist.c | |
parent | Portage.pm: When scanning a make.conf directory, only skip files beginning wi... (diff) | |
download | ufed-456a9d34fff548856cc1876253ca66db9abd0898.tar.gz ufed-456a9d34fff548856cc1876253ca66db9abd0898.tar.bz2 ufed-456a9d34fff548856cc1876253ca66db9abd0898.zip |
Made the subtitle more descriptive presenting a possible read-only mode
Diffstat (limited to 'ufed-curses-checklist.c')
-rw-r--r-- | ufed-curses-checklist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ufed-curses-checklist.c b/ufed-curses-checklist.c index 4a12968..1586263 100644 --- a/ufed-curses-checklist.c +++ b/ufed-curses-checklist.c @@ -613,7 +613,9 @@ static int callback(sFlag** curr, int key) int main(void) { - int result; + int result = EXIT_SUCCESS; + const char subtitle_ro[] = "USE flags can be browsed, but changes will NOT be saved!"; + const char subtitle_rw[] = "Select desired USE flags from the list below:"; read_flags(); fayt = (char*) calloc(minwidth, sizeof(*fayt)); @@ -625,7 +627,7 @@ int main(void) initcurses(); - result = maineventloop("Select desired USE flags from the list below:", + result = maineventloop(ro_mode ? subtitle_ro : subtitle_rw, &callback, &drawflag, flags, keys, true); cursesdone(); |