previous/next-screen-line (was: readline: How to unbind _all_ keys)

2019-05-28 Thread Henning
On 25/05/2019 11:14, Henning wrote: On 24/05/2019 17:16, Chet Ramey wrote: That's not in the distributed version of bash-5.0. If you're applying an older cygwin patch, have you tried just building the distributed version? Let's make sure that works. Bang! It does. So sorry that I didn't have

Re: readline: How to unbind _all_ keys

2019-05-25 Thread Henning
On 24/05/2019 17:16, Chet Ramey wrote: That's not in the distributed version of bash-5.0. If you're applying an older cygwin patch, have you tried just building the distributed version? Let's make sure that works. Bang! It does. So sorry that I didn't have that idea myself. Especially as I ha

Re: readline: How to unbind _all_ keys

2019-05-24 Thread Chet Ramey
On 5/24/19 10:51 AM, Henning wrote: > On 22/05/2019 15:30, Chet Ramey wrote: >> >> What error message did you get when trying to compile bash-5.0? I don't >> have or use cygwin, so you'll probably have to go to the cygwin bash >> maintainer, but we can at least try to point him in the right directi

Re: readline: How to unbind _all_ keys

2019-05-24 Thread Henning
On 22/05/2019 15:30, Chet Ramey wrote: What error message did you get when trying to compile bash-5.0? I don't have or use cygwin, so you'll probably have to go to the cygwin bash maintainer, but we can at least try to point him in the right direction. I tried to compile several times, but al

Re: readline: How to unbind _all_ keys

2019-05-22 Thread Chet Ramey
On 5/21/19 5:33 PM, Dennis Williamson wrote: > On Tue, May 21, 2019 at 3:04 AM Henning wrote: > >> On 20/05/2019 15:38, Chet Ramey wrote: >>> On 5/19/19 10:43 AM, Henning wrote: I don't like to have dozens of key bindings I never use. Currently I am issuing lots of lots of bind -r/-u co

Re: readline: How to unbind _all_ keys

2019-05-22 Thread Henning
On 22/05/2019 14:58, Koichi Murase wrote: What still remains is the not working assignment of ^X. Henning Hi, I guess you are using Bash 4.4 because, according to my records, bind -x '"\C-x": ...' after unbinding all the keyseqs causes segfaults in Bash-3.0, 3.1 and 4.0--4.2, infinite loops in

Re: readline: How to unbind _all_ keys

2019-05-22 Thread Chet Ramey
On 5/22/19 4:47 AM, Henning wrote: > On 21/05/2019 16:16, Chet Ramey wrote: >> >> I can't reproduce this using bash-5.0. I took your script, ran it, then >> bound C-x to execute "echo abc": > [snip] >> And hitting ^X gives me "abc". It doesn't matter whether or not I remove >> the binding for \C-x

Re: readline: How to unbind _all_ keys

2019-05-22 Thread Koichi Murase
> What still remains is the not working assignment of ^X. > > Henning Hi, I guess you are using Bash 4.4 because, according to my records, bind -x '"\C-x": ...' after unbinding all the keyseqs causes segfaults in Bash-3.0, 3.1 and 4.0--4.2, infinite loops in Bash 3.2, and error messages like "bash

Re: readline: How to unbind _all_ keys

2019-05-22 Thread Henning
On 21/05/2019 23:33, Dennis Williamson wrote: Why don't you unbind the keystrokes that are actually bound? while read -r b; do bind -r "$b"; done < <(bind -p | awk -F ':' '/./ && !/self-insert|accept-line|^#/ {gsub("\"", "", $1); print $1}') That was my first approach when I dealt with this som

Re: readline: How to unbind _all_ keys

2019-05-22 Thread Henning
On 21/05/2019 16:16, Chet Ramey wrote: I can't reproduce this using bash-5.0. I took your script, ran it, then bound C-x to execute "echo abc": [snip] And hitting ^X gives me "abc". It doesn't matter whether or not I remove the binding for \C-x itself. I started a console and changed nothing

Re: readline: How to unbind _all_ keys

2019-05-21 Thread Dennis Williamson
On Tue, May 21, 2019 at 3:04 AM Henning wrote: > On 20/05/2019 15:38, Chet Ramey wrote: > > On 5/19/19 10:43 AM, Henning wrote: > >> I don't like to have dozens of key bindings I never use. Currently I > >> am issuing lots of lots of bind -r/-u commands to get rid of the > >> default bindings. Th

Re: readline: How to unbind _all_ keys

2019-05-21 Thread Chet Ramey
On 5/21/19 4:04 AM, Henning wrote: > And another problem: after removing all \C-x sequences I used bind -x > to bind a shell command to \C-x proper. The result, when hitting \C-x, > is the following error message: > > bash_execute_unix_command: cannot find keymap for command > > Using a sequ

Re: readline: How to unbind _all_ keys

2019-05-21 Thread Henning
On 20/05/2019 15:38, Chet Ramey wrote: On 5/19/19 10:43 AM, Henning wrote: I don't like to have dozens of key bindings I never use. Currently I am issuing lots of lots of bind -r/-u commands to get rid of the default bindings. This slows down console startup unnecessarily. I would really like t

Re: readline: How to unbind _all_ keys

2019-05-20 Thread Chet Ramey
On 5/19/19 10:43 AM, Henning wrote: > I don't like to have dozens of key bindings I never use. Currently I > am issuing lots of lots of bind -r/-u commands to get rid of the > default bindings. This slows down console startup unnecessarily. > > I would really like to have an inputrc command like $

Re: readline: How to unbind _all_ keys

2019-05-20 Thread Henning
On 20/05/2019 07:41, G. Branden Robinson wrote: Remember that "self-insert" is a binding. I know (I've been using for over 20 years (v2.01) now) If you removed all bindings, no keystrokes would do _anything_. that's exactly what I want in order to then only bind the keys I want to have boun

Re: readline: How to unbind _all_ keys

2019-05-19 Thread G. Branden Robinson
At 2019-05-19T16:43:41+0200, Henning wrote: > I don't like to have dozens of key bindings I never use. Currently I > am issuing lots of lots of bind -r/-u commands to get rid of the > default bindings. This slows down console startup unnecessarily. > > I would really like to have an inputrc comman

readline: How to unbind _all_ keys

2019-05-19 Thread Henning
I don't like to have dozens of key bindings I never use. Currently I am issuing lots of lots of bind -r/-u commands to get rid of the default bindings. This slows down console startup unnecessarily. I would really like to have an inputrc command like $removeall or something like bind -r/-u all. O