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

learn more… | top users | synonyms

1
vote
1answer
484 views

How can I make custom key bindings work even while SSH-ed into another machine?

I've added "\eOD": backward-word "\eOC": forward-word to my .inputrc to get ctrl-arrow key mappings sorted out in Cygwin allowing me to move forward and back fine. When I SSH to any other Linux ...
3
votes
1answer
294 views

How race conditions affect reads and writes (that happen at the same time)

Let's say I open a file a for reading. What if an application, let's call it aWriter writes to this file in random intervals. Are there any possibilities of me receiving improper file contents if I ...
6
votes
1answer
1k views

.inputrc TAB not behaving as expected

I'm on a roll today, here's another question: How come when I put these into .inputrc, they both do the same thing? TAB: menu-complete Shift-TAB: menu-complete-reverse i.e. they both do whatever ...
93
votes
3answers
41k views

How to unfreeze after accidentally pressing Ctrl-S in a terminal?

It's a situation that has happened quite often to me: after I press (with a different intention) Ctrl-S in a terminal, the interaction (input or output) with it is frozen. It's probably a kind of ...
8
votes
6answers
9k views

How do I install a PHP CLI with a usable interactive prompt on Debian Wheezy?

When I install php5-cli on Debian Wheezy (currently testing), the interactive prompt is very unusable due to missing readline support (bug 341868). What's the easiest way to install a version linked ...
3
votes
1answer
986 views

How do you configure .inputrc so ALT+UP has the effect of cd

It should be possible to do that by having ALT+UP generate consecutive keyboard input equivalent to cdspace..ENTER by means of a macro definition. But can't figure out how exactly to do it.
4
votes
1answer
280 views

Why is Vim eating up Ctrl when used with Ctrl+v and how to fix it?

I'm using Vim /etc/zsh/zshrc to add key bindings for zsh because it doesn't work with inputrc. In my terminal with tmux when I type Ctrl+v then Ctrl+LeftArrow the shell will show ^[OD. However, when ...
2
votes
1answer
392 views

VI mode in freetalk

I somehow managed to get my freetalk into vi-mode. I'm just unsure how I did it (if I restart freetalk I get an emacs-mode). Anyone an idea?