summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2013-09-10 22:43:08 +0200
committerSven Eden <yamakuzure@gmx.net>2013-09-10 22:43:08 +0200
commit34427f9210ac25157b70327d3aa8c478ec223a70 (patch)
tree9b97f2e7af41937060eb3e79a2403a0d7d5984e5 /ufed-curses-help.c
parenttypes: Changed enums to explicit numbers and added values to sKey to hold a s... (diff)
downloadufed-34427f9210ac25157b70327d3aa8c478ec223a70.tar.gz
ufed-34427f9210ac25157b70327d3aa8c478ec223a70.tar.bz2
ufed-34427f9210ac25157b70327d3aa8c478ec223a70.zip
Changed the help page to support the new sKey layout
Diffstat (limited to 'ufed-curses-help.c')
-rw-r--r--ufed-curses-help.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/ufed-curses-help.c b/ufed-curses-help.c
index 8fce938..a7781c5 100644
--- a/ufed-curses-help.c
+++ b/ufed-curses-help.c
@@ -289,12 +289,6 @@ static void free_lines(void)
}
}
-#define key(x) x, sizeof(x)-1
-static const sKey keys[] = {
- { '\033', key("Back (Esc)"), 0 },
- { '\0', key(""), 0 }
-};
-#undef key
static int drawline(sFlag* line, bool highlight)
{
@@ -341,6 +335,11 @@ static int callback(sFlag** curr, int key)
void help(void)
{
+ sKey keys[] = {
+ MAKE_KEY('\033', "Esc", "Back", "", "", NULL, 0),
+ MAKE_KEY('\0', "", "", "", "", NULL, 0)
+ };
+
if ( ((int)helpheight != wHeight(List))
|| ((int)helpwidth != wWidth(List)) ) {
if(lines!=NULL)