diff options
Diffstat (limited to 'bootblocks/help.c')
-rw-r--r-- | bootblocks/help.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/bootblocks/help.c b/bootblocks/help.c index 3d53fad..049aa3d 100644 --- a/bootblocks/help.c +++ b/bootblocks/help.c @@ -7,6 +7,8 @@ #include "monitor.h" +#ifndef NOCOMMAND + struct keys { int key; int rel; @@ -33,12 +35,19 @@ struct keys { cmd_help(ptr) char * ptr; { -static int lastpage = 0; int helpkey = 1; - int i; getnum(&ptr, &helpkey); + return help_key(helpkey); +} + +help_key(helpkey) +int helpkey; +{ +static int lastpage = 0; + int i; + for(i=0; keys[i].key; i++) if( keys[i].key == helpkey || i == helpkey ) break; @@ -90,3 +99,4 @@ int page; return 0; } +#endif |