File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1020,15 +1020,19 @@ setup_readline(readlinestate *mod_state)
10201020 mod_state -> begidx = PyLong_FromLong (0L );
10211021 mod_state -> endidx = PyLong_FromLong (0L );
10221022
1023+ #ifndef __APPLE__
10231024 if (!isatty (STDOUT_FILENO )) {
10241025 /* Issue #19884: stdout is no a terminal. Disable meta modifier
10251026 keys to not write the ANSI sequence "\033[1034h" into stdout. On
10261027 terminals supporting 8 bit characters like TERM=xterm-256color
10271028 (which is now the default Fedora since Fedora 18), the meta key is
10281029 used to enable support of 8 bit characters (ANSI sequence
1029- "\033[1034h"). */
1030+ "\033[1034h").
1031+
1032+ With libedit, this call makes readline() crash. */
10301033 rl_variable_bind ("enable-meta-key" , "off" );
10311034 }
1035+ #endif
10321036
10331037 /* Initialize (allows .inputrc to override)
10341038 *
You can’t perform that action at this time.
0 commit comments