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

Add a New Comment Rich Markup
   

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.netbsd.org/pkgsrc-users/2018/01/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

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    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.

     

    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.13-d3ae.
    Corresponding source code