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

learn more… | top users | synonyms

4
votes
2answers
22 views

Is it possible to (re)define what readline (embedded in bash) defines as a word?

Many of the special Readline constructs allow the user to edit the command line in various ways. For instance, certain keystrokes allow moving forward a word. A word is defined to be what Bash itself ...
4
votes
1answer
67 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
230 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
47 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
92 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
54 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
128 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
118 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 ...
4
votes
0answers
46 views

Remap Return key in terminal to prevent accidental command on productions servers

I am looking for a way to remap the key for executing commands in terminal (I am using bash) to prevent accidental commands on productions servers. Return should be disabled. I tried the following ...
2
votes
0answers
67 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
95 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
142 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 ...