Re: /usr/bin/screen using cmd as escape key instead of C-a
Re: /usr/bin/screen using cmd as escape key instead of C-a
- Subject: Re: /usr/bin/screen using cmd as escape key instead of C-a
- From: Michael Hernandez <email@hidden>
- Date: Mon, 10 Mar 2008 14:49:24 -0400
On Mar 10, 2008, at 1:58 PM, Harald Hanche-Olsen wrote:
+ Jurvis LaSalle <email@hidden>:
I've been relying more and more on the handy screen utility and
tweaking my .screenrc. I find the C-a escape sequence to be awful.
I've tried using C-w and ` instead, but they each have their
drawbacks. It would seem obvious to map it to the cmd key, but I'm
stumped on how to do this.
You're stumped with good reason: The cmd key, being just a modifier,
does not produce any output that screen can see. An X client could,
but screen is not an X client so it can't.
Your choices of an escape character are really limited. The useful
ones range from ^@ (the NUL character) via ^A-^Z to ^[, ^\, ^], ^^,
and ^_. (I use the latter myself.)
You are probably running in a UTF-8 locale, since that is default on
the Mac. If you were to use a Latin-1 or other 8-bit locale, you could
perhaps set up some key to generate a character with the top bit set
and use that as an escape. Then you have more choices. You could use
XTerm.vt100.translations in the X resources database to generate this
code in response to some key combination.
- Harald
_______________________________________________
I know you didn't ask my opinion but I can't help but mention that if
you don't use Caps Lock it makes an excellent CTRL key. I have found
that it's the best combination for me especially when using screen
since Caps and A are next to each other on my kbd. Also handy for
generating ESC (^[) when I don't want my hands to leave the home row
when I'm using vim ;)
It's easy enough to replace Caps with CTRL if you like...
--Mike H
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden