graphcurses

Curses 2D graph generator
git clone git://git.christosmarg.xyz/graphcurses.git
Log | Files | Refs | README | LICENSE

commit 16a21f76b8d01f750dbbcb1187bf11e14defb9e4
parent 6e548fdc14c3c8445212bd90ed7543af26c65b51
Author: Christos Margiolis <christos@margiolis.net>
Date:   Thu,  3 Sep 2020 03:11:20 +0300

main: key var error fix

Diffstat:
Msrc/main.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c @@ -24,7 +24,8 @@ main(int argc, char **argv) expression_validate(&p); p.yfunc = expression_evaluate; - for (key = 0; key != 'q'; key = getch()) { + int key = 0; + for (; key != 'q'; key = getch()) { attron(COLOR_PAIR(1)); keys_handle(&p, key); erase();