Re: Bash-Problem with cursor position after calling a function with READLINE_LINE
On 2018-09-07 11:07, Stefan Krusche wrote:
Am Donnerstag, 6. September 2018 schrieb Norbert Gruener:
In my Bash shell (».bashrc«) I have »bind« a command to the »F1« key
bind -x '"\eOP":"_bash_man"' # F1 man <command>
The script »_bash_man« looks like (it is simplified only for test
I tried exactly that and it seems to work. I put only that one line in
assigned the F1 key with bind to it and it outputs just the string I
before when I hit F1 like intended. No problems with cursor movements,
backspace and any other command line editing.
I'm on Devuan ascii and run GNU bash, Version 4.4.12(1)-release
This reminds me of programs (ed, rcs, telnet etc.) which don't use
have less command line editing capabilities. Backspace should work,
Had something similar with vi a while back.
Key ID 4BFEBB31