Mercurial > mxe-octave
view src/readline-1-input.patch @ 6518:a8cdb57c6ea6
default-octave: Depend on pcre2 instead of pcre (bug #61542).
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 15 Nov 2022 15:50:29 +0100 |
parents | 5ef7d51c2195 |
children |
line wrap: on
line source
diff -ur readline-8.1.1/input.c readline-8.1.2/input.c --- readline-8.1.1/input.c 2020-12-19 07:54:06.883500144 -0500 +++ readline-8.1.2/input.c 2020-12-19 07:55:29.042995655 -0500 @@ -819,7 +819,12 @@ #if defined (__MINGW32__) - if (isatty (fd) - return (_getch ()); /* "There is no error return." */ + if (isatty (fd)) + { + int c = _getch (); + if (c == 0xe0) + rl_execute_next (_getch ()); + return (c); + } #endif result = 0; #if defined (HAVE_PSELECT) || defined (HAVE_SELECT)