Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
14 views

Readline doesn't cope well with terminal resize

If I do a terminal resize, some readline apps (pry in this example) break. Editing a single line still works, but as soon as there's a line wrap, the text continues on the same line, overwriting the ...
1
vote
0answers
45 views

Bind CTRL+W to werase (default bash behaviour in Linux/PuTTY) in iTerm2

I use a Mac at home and have changed my modifier keys swapping Command and CTRL, so CTRL+T spawns a new tab in chrome, CTRL+C is copy and so forth. I use Windows/Linux at work and I want a consistent ...
0
votes
0answers
35 views

Readline in vi mode: how can I enable up/down arrows?

When bash has vi bindings available (set -o vi), up/down arrows work in both command and insertion mode. When I setup readline's ~/.inputrc to use vi mode (set editing-mode vi), applications like ...
6
votes
1answer
94 views

Why you don't read lines with “for” in bash?

I've read that using "for" is not a good way to read lines in bash. Many people says this is clumsy and inefficient at best, and fails in many cases. I'd like to know what is the best way to read ...
0
votes
1answer
35 views

When an ssh session is forcibly disconnected, readline breaks (mac)

On Mac's iTerm app, when I ssh into remote machines and the connection is terminated by either power loss or connection failure, some of the time, readline in the terminal fails. At least, I think ...
0
votes
1answer
45 views

changing bash hotkeys

I would like to change some hotkeys in bash to match the dos prompt, because I go back and forth between them. I see that in order to change some of the hotkeys in bash, I need to change the ...
0
votes
0answers
22 views

It is possible to get 'history-search-backward' like behavior in MC prompt?

I have: # UP/DOWN filter history by typed string as prefix. "\e[A": history-search-backward "\C-p": history-search-backward "\e[B": history-search-forward "\C-n": history-search-forward in ...
1
vote
1answer
45 views

Readline in vi mode: how can I access previously executed commands?

I recently followed this post's advice on how to make vi more ubiquitous and I changed my readline mode to vi. Before I did this, I could use the arrow keys to access previously executed commands. ...
10
votes
4answers
340 views

Is there any way to save a keyboard macro in bash?

I would like to permanently save a keyboard macro that I've recorded using C-x ( and C-x ). Is there an easy way to "see the source" for my newly recorded macro so that I can bind it to a keyboard ...
3
votes
1answer
117 views

readline: difference between vi, vi-move, vi-command, vi-insert keymaps

The readline(3) manpage lists these four (vi, vi-move, vi-command, vi-insert) as possible options for the keymap setting. I have tried setting these different options and they seem to have no effect ...
1
vote
1answer
195 views

Using readline keyboard shortcuts in OSX korn shell

I am using ksh on Mac OS X 10.6 xterm (that is, not using Terminal.app). When I try to browse the command history via CTRL+P or try to move the cursor on my prompt via CTRL+B, only the characters ^P ...
6
votes
1answer
1k views

How do I reload .inputrc?

Background (probably wrong) I have heard that the readline module is reading ~/.inputrc and that is how it changes the behaviour of keystrokes under programs such as bash. Question How can I reload ...
1
vote
1answer
184 views

libreadline history lines combine

This has been driving me crazy for about three years. I don't know how to fully describe the problem, but I think I can finally describe a way to recreate it. Your milage may vary. I have a mixture ...
0
votes
1answer
631 views

Why doesn't iPython see readline?

I am trying to compare/contrast various python tools and I would like ipython in the mix, but when I run ipython I get the readline warning even though readline is installed on my mac: WARNING: ...
2
votes
1answer
267 views

Bash readline blink-matching-paren not blinking matching parentheses

Bash readline has a setting called blink-matching-paren that is not working for me. If I type an open parenthesis on the command line, then some text, then a close parenthesis I don't get any ...
3
votes
2answers
536 views

Binding backward-kill-word to Ctrl+w

I'm trying to switch from prolonged use of Tcsh to recent exploration of Bash. I've managed to port over all my favorite features, except for Ctrl+w which treats spaces and slashes as word ...
0
votes
1answer
210 views

(Perl) Cannot do `initialize' in Term::ReadLine::Gnu in Mac OSX 10.6

I recently installed MacPorts and I think it might have messed up some of my libraries. Now when I try to run the Perl debugger I get this: >perl -d -e 0 Cannot do `initialize' in ...
5
votes
1answer
361 views

Mac Terminal/iTerm history cursor problems

So often, I run a command in either Terminal.app or iTerm, press the up arrow to go back to edit it, and the cursor jumps to the line above or somewhere totally in the wrong place. It especially ...
0
votes
2answers
267 views

Installing Heroku on Lucid Lynx reveals missing dependencies

I am trying to get a Ruby on Rails app hosted free somewhere, and Heroku is looking like my last resource. It is supposed to work on Linux, and the gem installs with no errors, but whenever I run any ...
9
votes
5answers
2k views

Bash vs. Gnu screen : Replace Ctrl-A with Ctrl-Shift-A

I'm a new user to GNU Screen. I've been using Bash for a very long time, and I want to give GNU Screen a try. As you know, GNU Screen uses 'C-a' (Control-A) as as the command character. Trouble is, ...
2
votes
2answers
576 views

PowerShell: history enhancements (readline)?

Some of the things I like in Bash and would love to know how to do in PowerShell: In Bash, I have history scrolling set up so that it only scrolls commands that begin with the same prefix as the ...
3
votes
5answers
565 views

Control-Backspace (unix-kill-rubout) for readline?

In readline(3) I should be able to map Control-Backspace to the same function as Control-W (unix-kill-rubout). Regardless of what I put in ~/.inputrc I'm unable to get this to be recognized. \C-\b: ...
0
votes
2answers
532 views

SQLite with readline support on Ubuntu

I had the sqlite3 package installed on Ubuntu and there's no support for readline. That means there's no command history and those other nifty features readline gives you. Is this a configuration or ...
12
votes
3answers
2k views

Terminal tab completion

I'm just moved from linux to mac, and one of the problems I'm having is that tab completion is only 1 level deep, and I'm not sure how to correct that. Let me explain by example - when I used git on ...
0
votes
2answers
1k views

Ctrl-e and Ctrl-a not working on Ubuntu Hardy?

I use a Mac, so I don't have Home and End keys on my keyboard. I also ssh to Linux servers quite a bit. I've found that when I ssh to an Ubuntu Linux server running Jaunty I can use the readline ...