patching again the terminal

This commit is contained in:
phyto 2019-05-21 13:45:22 +02:00
parent 2362957692
commit 8bb519fe17
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
CC = gcc CC = gcc
CCOPT = -Wall -g -DDEBUG_LEVEL=1 CCOPT = -Wall -g -DDEBUG_LEVEL=1
CLIB = core/libdd2m-core.a viz/libdd2m-viz.a CLIB = ../core/libdd2m-core.a ../viz/libdd2m-viz.a
OSERIAL = ../serial/serial.o ../serial/funcs.o OSERIAL = ../serial/serial.o ../serial/funcs.o
@ -9,4 +9,4 @@ terminal.o: terminal.c Makefile terminal.h
$(CC) ${CCOPT} $< -c $(CC) ${CCOPT} $< -c
t: t.c terminal.o t: t.c terminal.o
${CC} ${CCOPT} $< terminal.o ${OSERIAL} -lncurses -o $@ ${CC} ${CCOPT} $< terminal.o ${OSERIAL} ${CLIB} -lncurses -o $@

View File

@ -92,8 +92,9 @@ do {
received = wgetch(glass); received = wgetch(glass);
echo(); echo();
#if DEBUG_LEVEL > 1 #if DEBUG_LEVEL
sprintf(ligne, " got $%X\n", received); sprintf(ligne, " got $%X '%c'\n", received,
isprint(received) ? received : '?');
waddstr(glass, ligne); wrefresh(glass); waddstr(glass, ligne); wrefresh(glass);
#endif #endif