fix pdcurses specific code
authorLaurent MAZET <laurent.mazet@thalesgroup.com>
Mon, 29 Apr 2024 13:10:52 +0000 (15:10 +0200)
committerLaurent MAZET <laurent.mazet@thalesgroup.com>
Mon, 29 Apr 2024 13:10:52 +0000 (15:10 +0200)
cmore.c

diff --git a/cmore.c b/cmore.c
index c9bc89eb1bbe071cb19af2a93052f3f50e476647..a689d3ec23f3574185bec13cd15bdc0599d0f917 100644 (file)
--- 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 <stdlib.h>
 
@@ -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