GNU Readline is a library for command line edition, used by bash and some other programs

learn more… | top users | synonyms

4
votes
2answers
104 views

Deleting input forward to the next space

When in terminal I can use Ctrl+w to delete a whole word or IP (. is separator for each octet) when going leftward of prompt. However, if I try Alt+d to go rightward of prompt, terminal recognizes "." ...
2
votes
1answer
347 views

arrow keys are not working with terminal server telnet (termnetd) session

I am using terminal server package termnetd 3.2, which reads serial port and gives output on telnet port. I logged into terminal server port, every thing works fine except the arrow keys, Home and End ...
1
vote
1answer
40 views

How can I change readline settings on keypress?

I checked docs for readline (in man bash), and I can't find a way to solve one problem: how to change readline setting (set ... on/off) on keypress? Keybindings seem to have form: key:function or ...
1
vote
1answer
249 views

Strip newline from piped input

I've been setting up a script to work with haste-server. This takes piped or file input (tail /var/log/messages | haste and haste < /path/to/file.txt) and submits it to the server which then ...
1
vote
1answer
153 views

Custom tab-completion in bash's `read`

Is there a way to "import" a list of words into bash's read builtin to have custom tab-completion? I've been writing a wrapper script for suckless' minimalist irc client "ii", and I don't have a way ...
1
vote
1answer
84 views

How to turn on all default binding keys of vi-editing-mode on bash?

I am using vi-editing-mode on Bash. According to man readline, there are a couple of default binding keys working on vi-editing-mode. Some keys work well, but some other default keys do not work. ...
1
vote
1answer
152 views

Simulating READLINE_LINE in Bash < 4.0

I am trying to make some of my code bash 3.X compatible and I have a key-binding that utilizes READLINE_LINE inside its callback function. 3.0 versions of Bash don't supply the READLINE_LINE, so I ...
1
vote
1answer
128 views

Disable tab autocompletion in interactive mode

I have set disable-completion on in my ~/.inputrc, however this doesn't affect php in interactive mode (php -a). I would like to copy some code from another editor to the php interactive shell which ...
3
votes
0answers
78 views

Bash command not found due to stray garbage characters

What is the cause of this behavior? $ cd ../ $ bash: $'\210\210cd': command not found This happens sometimes (rarely) when I enter a command, there is no visible character preceding the cd, still ...
2
votes
0answers
44 views

Are there any command line IRC clients that use readline?

I'm currently using irssi as my irc client, which is ok, mostly, but there are a couple of things that would make the chat experience better: readline support -- the ability to use vi key bindings ...
2
votes
0answers
129 views

Assign both menu-complete and dynamic-complete-history to TAB

Is there a way for me to assign both menu-complete and dynamic-complete-history to Tab (or one to Tab and the other to Tab-Tab) in .inputrc? I'm thinking there might be a way to setup a function and ...
1
vote
0answers
100 views

Readline menu-complete on OS X

I'm trying to test out using the menu-complete on OS X 10.8, and it's just not working. I have it in my .inputrc as such: "\M-s": menu-complete I then tried to do C-x C-r to reload the .inputrc and ...
1
vote
0answers
147 views

Are there any editline configuration files available to make it act more like readline?

With editline replacing readline in a few software packages I use, the annoyance is growing at editline's behaviors and shortcomings. Is there someone maintaining a configuration file to at least make ...
0
votes
0answers
27 views

readline emacs equivalent to vi's 'fc'

In vi readline, I can use the command fc where c is a character I want to find and jump to in the current line. E.g. echo 'hello world' fw --------> Is there an equivalent command in emacs mode? ...