OSDN Git Service

Fix: unable to recognize key_pad_code after writing.
authorAkira <akohta001@gmail.com>
Tue, 17 Dec 2013 14:50:57 +0000 (23:50 +0900)
committerAkira <akohta001@gmail.com>
Tue, 17 Dec 2013 14:50:57 +0000 (23:50 +0900)
Makefile
src/main.c

index ffeceeb..ea9aaaf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
 #Option for development
 #CFLAGS = -g -Wall -DDEBUG ${DEFS} ${CDEF}
 #Option for release
-CFLAGS = -O2 -Wall ${DEFS} ${CDEF}
+CFLAGS = -Wall ${DEFS} ${CDEF}
 
 CDEF = -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=700 -D_ISOC99_SOURCE
 
index dc4b109..9dd91d2 100644 (file)
@@ -490,6 +490,7 @@ static BOOL DoLoop(WINDOW *scrp, nt_usr_db_handle db_handle,
                                        continue;
                                }
                        }
+                       keypad(stdscr, true);
                        status_msg = nt_write_data_get_status_msg(h_write_data);
                        wclear(scrp);
                        continue;
@@ -515,6 +516,7 @@ static BOOL DoLoop(WINDOW *scrp, nt_usr_db_handle db_handle,
                                        }
                                }
                        }
+                       keypad(stdscr, true);
                        disp_state = DISP_STATE_RESLIST;
                        state = DISP_STATE_RESLIST;
                        ch = NT_KEY_NONE;