From fd8be987f8334e9530be6ca571c54695892aa871 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 25 Jul 2005 15:09:31 +0000 Subject: * input.c (rl_getc): Use getch to read console input on Windows. * readline.c (bind_arrow_keys_internal): Translate Windows keysequences into POSIX key sequences. * rldefs.h (NO_TTY_DRIVER): Define on MinGW. * rltty.c: Conditionalize on NO_TTY_DRIVER throughout. --- readline/rldefs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'readline/rldefs.h') diff --git a/readline/rldefs.h b/readline/rldefs.h index 4a28bd1..b80db8c 100644 --- a/readline/rldefs.h +++ b/readline/rldefs.h @@ -32,7 +32,9 @@ #include "rlstdc.h" -#if defined (_POSIX_VERSION) && !defined (TERMIOS_MISSING) +#if defined (__MINGW32__) +# define NO_TTY_DRIVER +#elif defined (_POSIX_VERSION) && !defined (TERMIOS_MISSING) # define TERMIOS_TTY_DRIVER #else # if defined (HAVE_TERMIO_H) -- cgit v1.1