bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] Control-O keybinding does not work [with patch]


From: Rhialto
Subject: [Bug-readline] Control-O keybinding does not work [with patch]
Date: Wed, 17 Jan 2018 16:25:40 +0100
User-agent: Mutt/1.9.1 (2017-09-22)

I entered a bug report against bash here:
http://savannah.gnu.org/support/index.php?109449                                
see also http://mail-index.netbsd.org/pkgsrc-users/2018/01/16/msg026141.html 
but it's really a problem of the included readline.

By inspection of the source, readline 7.0 appears to need the same
patch (with the directory name adjustted of course).

--- lib/readline/rltty.c.orig   2018-01-17 13:13:06.000000000 +0100
+++ lib/readline/rltty.c        2018-01-17 13:16:55.000000000 +0100
@@ -308,6 +308,7 @@
   /* Make the interrupt keys go away.  Just enough to make people happy. */
   tiop->ltchars.t_dsuspc = -1; /* C-y */
   tiop->ltchars.t_lnextc = -1; /* C-v */
+  tiop->ltchars.t_flushc = -1; /* C-o */
 #endif /* TIOCGLTC */
 }
 
@@ -578,6 +579,10 @@
   tiop->c_cc[VDSUSP] = _POSIX_VDISABLE;
 #endif
 
+#if defined (VDISCARD)
+  tiop->c_cc[VDISCARD] = _POSIX_VDISABLE;
+#endif
+
 #endif /* TERMIOS_TTY_DRIVER && _POSIX_VDISABLE */
 }
 #endif  /* !NEW_TTY_DRIVER */


Regards,
-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/falu.nl      -- are condemned to reinvent it. Poorly.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]