diff options
author | ache <ache@ache.one> | 2019-02-14 02:25:10 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2019-02-14 02:25:10 +0100 |
commit | 88e23fe50959ccc3e0321fa5983cb8b40bd804af (patch) | |
tree | de16bee6d8b3761c8c4f2c07a04aff237897b334 /wind.c | |
parent | Todo things (diff) |
Runtime help
Diffstat (limited to 'wind.c')
-rw-r--r-- | wind.c | 25 |
1 files changed, 22 insertions, 3 deletions
@@ -36,6 +36,28 @@ void resize() { CHECK(doupdate); move(LINES-1, 1); } +void runtimeHelp(void) { + int x = COLS/8; + int y = LINES/7; + + int w = COLS*2/7; + int h = LINES/7; + + clear(); + move(y,x); + printw("This is the help"); + y+=2; + move(y,0); + printw(RUNTIME_HELP_STRING); + + + move(LINES*6/7,x); + printw("Type h or q to exit"); + int c = 0; + while( (c = getch()) && c != EOF && !strchr("hHqQ", c) ) ; + + clear(); +} int confirmSend(char* txt, char* autheur) { int x = COLS/6; int y = LINES/3; @@ -73,14 +95,11 @@ int confirmSend(char* txt, char* autheur) { } } - - int c = 0; while( (c = getch()) && c != EOF && !strchr("oyneqOYNEQ", c) ) ; clear(); return (c == 'e' || c =='E') ? 2 : (!!strchr("yYoO", c)) ; - } |