From: Laurent MAZET Date: Mon, 29 Apr 2024 13:10:52 +0000 (+0200) Subject: fix pdcurses specific code X-Git-Tag: cmore-1.0~31 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=dfbd663a9371d6502e10b06ea8e34b5727a3994a;p=cmore.git fix pdcurses specific code --- diff --git a/cmore.c b/cmore.c index c9bc89e..a689d3e 100644 --- a/cmore.c +++ b/cmore.c @@ -1,6 +1,6 @@ /* depend: */ /* cflags: */ -/* linker: cmd.o debug.o tui.o -lncurses */ +/* linker: cmd.o debug.o tui.o -lpdcurses */ #include @@ -19,7 +19,7 @@ void display (char **lines, int xmax, int ymax) { int stop = 0; -#ifdef _PDCURSES +#ifdef __PDCURSES__ statusmsg ("Press 'q' or escape to quit"); #else statusmsg ("Press 'q' or double-escape to quit"); @@ -43,7 +43,7 @@ void display (char **lines, int xmax, int ymax) int key = waitforkey (); switch (key) { case KEY_ESC: -#ifndef _PDCURSES +#ifndef __PDCURSES__ key = waitforkey (); switch (key) { case KEY_ESC: @@ -68,9 +68,9 @@ void display (char **lines, int xmax, int ymax) case KEY_DOWN: skip = (lines[skip + 1] != NULL) ? skip + 1 : skip; break; -#ifdef _PDCURSES - case BUTTON_ALT+'F': //ALT_F: - case BUTTON_ALT+'H': //ALT_H: +#ifdef __PDCURSES__ + case ALT_F: + case ALT_H: stop = 1; break; #endif