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

 
 

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

Submitter:  None
Submitted:  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
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>
Group administrator
Wed 17 Jan 2018 12:32:13 PM UTC, original submission:  

As discussed in the pkgsrc-users mailing list (see http://mail-index ... 16/msg026141.html ), 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;
+#endif
+

Anonymous

 

Attached Files

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

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    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.16-ed84.
    Corresponding source code