comparison src/readline-1-input.patch @ 5031:5049ab5e66f6

Re-add readline patches to work with readline 8 (Bug #55957) * src/readline-1-display.patch, src/readline-1-input.patch, src/readline-1-sigwinch.patch, src/readline-2-event-hook.patch dist-files.mk: add refes to added files
author John Donoghue
date Thu, 21 Mar 2019 09:34:09 -0400
parents
children 41e50d658de0
comparison
equal deleted inserted replaced
5030:eec61a755122 5031:5049ab5e66f6
1 diff -ur readline-8.0.disp/input.c readline-8.0/input.c
2 --- readline-8.0.disp/input.c 2019-03-20 07:56:04.897036396 -0400
3 +++ readline-8.0/input.c 2019-03-20 08:00:45.403401856 -0400
4 @@ -519,7 +519,12 @@
5
6 #if defined (__MINGW32__)
7 if (isatty (fileno (stream)))
8 - return (_getch ()); /* "There is no error return." */
9 + {
10 + int c = _getch ();
11 + if (c == 0xe0)
12 + rl_execute_next (_getch ());
13 + return (c);
14 + }
15 #endif
16 result = 0;
17 #if defined (HAVE_PSELECT)