From dfbd663a9371d6502e10b06ea8e34b5727a3994a Mon Sep 17 00:00:00 2001 From: Laurent MAZET Date: Mon, 29 Apr 2024 15:10:52 +0200 Subject: [PATCH] fix pdcurses specific code --- cmore.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.30.2