Hey I like to use Ctrl+A and Ctrl+E a lot to navigate my insane big bash one liners but this is incompatible with Screen which has a binding to Ctrl-A. Is it possible to move the screen binding so I can have the best of both worlds? Ta Andrew
On Fri, Oct 30, 2015 at 10:53:29AM +0100, Andrew Holway wrote:> Hey > > I like to use Ctrl+A and Ctrl+E a lot to navigate my insane big bash one > liners but this is incompatible with Screen which has a binding to Ctrl-A. > Is it possible to move the screen binding so I can have the best of both > worlds?If you only make simple use of screen, then there's always tmux. It uses ctl+b by default, and one of the reasons is the issue you mention. (If you have a lot of complex uses of screen, then it becomes a bigger deal to learn the new keyboard shortcuts, but many people just use it's attach and deteach feature, and relearning those in tmux takes a few minutes.) If you are interested in trying it, I have my own very simple page with links to a better page at http://srobb.net/screentmux.html -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
On 30/10/15 20:53, Andrew Holway wrote:> Is it possible to move the screen binding so I can have the best of both > worlds? >Indeed it is quite easy. In you ${HOME}/.screenrc file, add the following: escape ^Zz This would change your escape sequence to CTRL+Z. I had to do something similar on a server that was running minicom and could not change the escape in minicom as it was used by many for so long that muscle memory would have been a big hill to climb! ak.
W dniu 30.10.2015 o 10:53, Andrew Holway pisze:> Hey > > I like to use Ctrl+A and Ctrl+E a lot to navigate my insane big bash one > liners but this is incompatible with Screen which has a binding to Ctrl-A. > Is it possible to move the screen binding so I can have the best of both > worlds?Of course you can send CTRL+a to application in screen by pressing "CTRL+a a" -- Over And Out MoonWolf
Andrew, Don't do it man. Don't remap screen key sequences. I had the same issue. This is how I ultimately solved it. I mentally trained myself to think of screen as a room that I need to do a Ctrl-A in order to get in there. So, for bash, It is NOT a big deal anyway. Train your fingers to do a Ctrl-A then a It is just one extra keystroke. I got used to it within a week. -George On 10/30/15 7:13 AM, Scott Robbins wrote:> On Fri, Oct 30, 2015 at 10:53:29AM +0100, Andrew Holway wrote: >> Hey >> >> I like to use Ctrl+A and Ctrl+E a lot to navigate my insane big bash one >> liners but this is incompatible with Screen which has a binding to Ctrl-A. >> Is it possible to move the screen binding so I can have the best of both >> worlds? > If you only make simple use of screen, then there's always tmux. It uses > ctl+b by default, and one of the reasons is the issue you mention. > > (If you have a lot of complex uses of screen, then it becomes a bigger deal > to learn the new keyboard shortcuts, but many people just use it's attach > and deteach feature, and relearning those in tmux takes a few minutes.) > > If you are interested in trying it, I have my own very simple page with > links to a better page at http://srobb.net/screentmux.html >