helpThe GNU Bourne-Again SHell - Support: sr #109449, Control-O keybinding does not work...


sr #109449: Control-O keybinding does not work [with patch]

Submitted by:  None
Submitted on:  Wed 17 Jan 2018 12:32:13 PM UTC  
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Wont Do
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  *BSD

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 17 Jan 2018 04:47:06 PM UTC, comment #1: 

The best thing to do is to use stty to disable ^O if you plan to use the binding. Bash doesn't modify terminal settings.

(And there's no difference between the readline library used with bash and the standalone library. That's how bash can be built against the standalone library if desired.)

Chet Ramey <chet>
Project Administrator
Wed 17 Jan 2018 12:32:13 PM UTC, original submission:  

As discussed in the pkgsrc-users mailing list (see ), the Control-O key binding doesn't work for me on NetBSD.

It seems that the cause is that the flush / VDISCARD character, which is by default Control-O, is not disabled in the readline library as used within bash.

With the attached patch it works for me. I might have overlooked some locations more where a similar change is necessary, depending on configuration; the change effective for me is

+#if defined (VDISCARD)
+  tiop->c_cc[VDISCARD] = _POSIX_VDISABLE;



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #42936:  lib-readline-rltty.c.diff added by None (613B - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by chet (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-01-17 chet StatusNone => Wont Do
    2018-01-17 None Attached File- => Added lib-readline-rltty.c.diff, #42936

    Back to the top

    Powered by Savane 3.5