Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15679
| From | Dennis Williamson <dennistwilliamson@gmail.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: No way to 'bind -x' symbolic character names |
| Date | 2019-11-30 08:57 -0600 |
| Message-ID | <mailman.31.1575125861.13035.bug-bash@gnu.org> (permalink) |
| References | <1575045558200.80219@kth.se> <CANaoh6K4oSmxRhOsHazus0bwEOz0uqG1GwdwQZjMg5BVufJQFg@mail.gmail.com> |
On Fri, Nov 29, 2019, 10:40 AM Nikolaos Kakouros <nkak@kth.se> wrote: > Using bash version: > > GNU bash, version 5.0.11(1)-release (x86_64-pc-linux-gnu) > > > Trying to map Backspace to execute a function, I try to do: > > bind -x '"Rubout": my_func' > > This, as expected, binds the string 'Rubout' to the function. Omitting the > double quotes makes bind fail. Escaping, like `\Rubout`, works neither. > > This is important in the case of Backspace, as there is no (to my > knowledge) other way to bind the backspace than using Rubout. Using Konsole > as my terminal emulator, `C-v Backspace` prints `^?` which I haven't > managed to use with bind. > Backspace is a terminal setting which has precedence. You have to first undefine it. stty erase undef bind -x '"\C-?":my_func' >
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: No way to 'bind -x' symbolic character names Dennis Williamson <dennistwilliamson@gmail.com> - 2019-11-30 08:57 -0600
csiph-web