summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2013-09-10 20:23:19 +0200
committerSven Eden <yamakuzure@gmx.net>2013-09-10 20:23:19 +0200
commit2d2b693bc6b4d00227c8fa1a3fe1c2dad9a871d5 (patch)
treed06c5240ecfd146b19dcc81b8ed4e7094b51a7f4
parentPortage.pm: Enhanced Stripping of descriptions to build the alternative variant. (diff)
downloadufed-2d2b693bc6b4d00227c8fa1a3fe1c2dad9a871d5.tar.gz
ufed-2d2b693bc6b4d00227c8fa1a3fe1c2dad9a871d5.tar.bz2
ufed-2d2b693bc6b4d00227c8fa1a3fe1c2dad9a871d5.zip
Added new F10 key short help
-rw-r--r--ufed-curses-checklist.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/ufed-curses-checklist.c b/ufed-curses-checklist.c
index f51e07b..8a39fac 100644
--- a/ufed-curses-checklist.c
+++ b/ufed-curses-checklist.c
@@ -524,6 +524,7 @@ static int callback(sFlag** curr, int key)
else e_order = eOrder_left;
drawFlags();
+ drawBottom(true);
wmove(wInp, 0, strlen(fayt));
break;
@@ -532,6 +533,7 @@ static int callback(sFlag** curr, int key)
else e_desc = eDesc_ori;
drawFlags();
+ drawBottom(true);
wmove(wInp, 0, strlen(fayt));
break;
@@ -639,19 +641,21 @@ int main(void)
/* The keys to use differ whether ro_mode is true or false */
#define mkKey(x) x, sizeof(x)-1
sKey keys[] = {
- { '?', mkKey("?: Help"), 0 },
- { '\n', mkKey(ro_mode ?
+ { '?', mkKey("?: Help"), 0 },
+ { '\n', mkKey(ro_mode ?
"Enter: Exit"
- : "Enter: Save"), 0 },
- { '\033', mkKey(ro_mode ?
+ : "Enter: Save"), 0 },
+ { '\033', mkKey(ro_mode ?
"Esc: Exit"
- : "Esc: Cancel"), 0 },
- { -1, mkKey("Toggle"), 1 },
- { KEY_F(5), mkKey("F5: Local/Global"), 1 },
- { KEY_F(6), mkKey("F6: Installed"), 1 },
- { KEY_F(7), mkKey("F7: Masked/Forced"), 1 },
- { KEY_F(9), mkKey("F9: Pkg/Desc Order"), 1 },
- { '\0', mkKey(""), 0 }
+ : "Esc: Cancel"), 0 },
+ { -1, mkKey("Toggle"), 1 },
+ { KEY_F( 5), mkKey("F5: Local/Global"), 1 },
+ { KEY_F( 6), mkKey("F6: Installed"), 1 },
+ { KEY_F( 7), mkKey("F7: Masked/Forced"), 1 },
+ { -1, mkKey(" "), 2 },
+ { KEY_F( 9), mkKey("F9: Swap Pkg/Desc"), 2 },
+ { KEY_F(10), mkKey("F10: Strip Desc"), 2 },
+ { '\0', mkKey(""), 0 }
};
#undef mkKey