From b66b505dcdd5f2b1a607758bf032d5b9b6860a1e Mon Sep 17 00:00:00 2001 From: "David G. Holm" Date: Tue, 4 Jan 2000 02:10:04 +0000 Subject: [PATCH] See ChangeLog entry 2000-01-03 18:25 EDT David G. Holm --- harbour/ChangeLog | 38 ++++++++++++++++++++++---------------- harbour/source/rtl/inkey.c | 7 +++---- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index af6e230880..8c718b8c65 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,9 @@ +2000-01-03 18:25 EDT David G. Holm + + * source/rtl/inkey.c + ! Enable Unix-compatible keyboard input even when not using + ncurses or slang. + 20000103-19:48 GMT+1 Ryszard Glab *include/expropt.h @@ -12,7 +18,7 @@ *source/compiler/harbour.l * added support for macro variables in PUBLIC and PRIVATE declarations PRIVATE &var, &var.end - * optimization of PUBLIC/PRIVATE variables creation (there was a + * optimization of PUBLIC/PRIVATE variables creation (there was a single call __MVPUBLIC/__MVPRIVATE function for every variable, there is a single call for a single statement now), for example: PRIVATE var1, var2, var3 @@ -68,21 +74,21 @@ 20000101-22:50 GMT+3 Luiz Rafael Culik * doc/funclist.txt - +Update some function status + +Update some function status * source/rdd/dbcmd.c +Added to missing documentation of __dbzap() and OrdCondSet() * source/rtl/FileSys.c - + doc for FOPEN() - + doc for FCLOSE() - + doc for FWRITE() - + doc for FSEEK() - + doc for FREAD() - + doc for FILE() - + doc for FREADSTR() - + doc for FRENAME() - + doc for FERROR() - + doc for RENAME - + doc for ERASE + + doc for FOPEN() + + doc for FCLOSE() + + doc for FWRITE() + + doc for FSEEK() + + doc for FREAD() + + doc for FILE() + + doc for FREADSTR() + + doc for FRENAME() + + doc for FERROR() + + doc for RENAME + + doc for ERASE 20000101-07:18 GMT+3 Luiz Rafael Culik * source/rdd/dbcmd.c @@ -160,13 +166,13 @@ Fixed the documentation to make the ng linker happy and added docs for the array *include/extend.h * added declaration for hb_memvarGetStrValuePtr() * added declaration of hb_macroTextValue() - + *source/vm/hvm.c * added code to handle macro text substitution "text ¯o" *source/macro/macro.c - * added code to handle macro text substitution - + * added code to handle macro text substitution + 19991231-06:15 GMT+1 Antonio Linares * source/rtl/gt/gtwin.c * fix for a Win API wrong parameter call detected using NuMega BoundsChecker diff --git a/harbour/source/rtl/inkey.c b/harbour/source/rtl/inkey.c index 44ed64359e..827badbe23 100644 --- a/harbour/source/rtl/inkey.c +++ b/harbour/source/rtl/inkey.c @@ -36,6 +36,8 @@ /* * ChangeLog: * + * V 1.63 David G. Holm Enable Unix-compatible keyboard input + * even when not using ncurses or slang. * V 1.55 David G. Holm Added _SET_CANCEL support for * Ctrl+Break, returning no key code * when _SET_CANCEL is off. @@ -319,13 +321,10 @@ void hb_inkeyPoll( void ) /* Poll the console keyboard to stuff the Harbour { int ch = 0; #if defined(HARBOUR_USE_CRS_GTAPI) || defined(HARBOUR_USE_SLN_GTAPI) -#if 1 ch = hb_gtReadKey(); -#else - /* TODO: */ +#elif defined(OS_UNIX_COMPATIBLE) if( ! read( STDIN_FILENO, &ch, 1 ) ) ch = 0; -#endif #elif defined(_Windows) || defined(WINNT) /* First check for Ctrl+Break, which is handled by gt/gtwin.c */ if( hb_gtBreak )