Screen is a great tool for command-line usage, and is also available for cygwin. If you enjoy using the command line, and haven’t checked out screen, I highly recommend it. I found some of the commands and configuration changes a little difficult to remember, so I’m adding them here.
First of all, the main screen escape key is ctrl-a. That’s all well and good, unless you’re an emacs user, then it’s downright offensive (ctrl-a is the emacs command to go to the beginning of a line- one I happen to use a lot). Fortunately it’s easy enough to change. I added a screenrc file that looks like this:
# ctrl-/ is my preferred shortcut key
escape \034\034
# turn off visual bell
vbell off
caption always "%H %= %-w%L>%{= BW}%n*%t%{-}%52<%+w %L="
startup_message off
deflogin on
shell -/bin/bash
It’s easy enough to switch between screens from a single (rxvt) shell now, but as an emacs user I naturally enjoy having my screen split so I can multitask. It took me a while to figure out how to do that effectively with screen.
ctrl-/ S splits the screen.
ctrl-/ n switches to the next screen, but does it within the current region, so it’s not like M-x o in emacs.
ctrl-/ tab switches between the split regions, just like M-x o in emacs.
References
Post a Comment