LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2009, 11:52 AM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Rep: Reputation: 110Reputation: 110
Alt as escape modifier in .screenrc?


I like screen, but I need c-a for something else. Actually, I don't want to use the Control key at all, I think that Alt is a lot more comfortable. How do I change the escape sequence to Alt+something in .screenrc?

Yes, I searched, but that seems hard to find.
 
Old 09-13-2009, 08:57 PM   #2
adamben
Member
 
Registered: Feb 2007
Distribution: slackware,gentoo,ubuntu
Posts: 50

Rep: Reputation: 17
"escape" keyword in your config... here is the doc on it:

http://www.gnu.org/software/screen/m...mand-Character
 
Old 09-13-2009, 10:55 PM   #3
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Original Poster
Rep: Reputation: 110Reputation: 110
Yes, so what?
 
Old 09-14-2009, 08:19 PM   #4
adamben
Member
 
Registered: Feb 2007
Distribution: slackware,gentoo,ubuntu
Posts: 50

Rep: Reputation: 17
If you use vi/vim and you really want to use alt+a as your control sequence, edit your ~/.screenrc file:

vi ~/.screenrc
Find the escape line, or, if this is a new file you are creating, add it.
escape[space]press ctrl+v, then immediately press alt+a

write, save - start screen. Your control sequence should have been modified.

alt+a seems like it might be little bit quirky to use.
 
Old 09-14-2009, 08:37 PM   #5
adamben
Member
 
Registered: Feb 2007
Distribution: slackware,gentoo,ubuntu
Posts: 50

Rep: Reputation: 17
Just to comment a little further -

^[a would probably work just as well. The problem I mentioned is you are likely going to have to hold the Alt key until you indicate what you want to do - example: You press Alt+a, then, after letting go of the a, you press c to create a new window.... not nearly as fun as the default(being able to release ctrl). If you need it modified that badly and arn't set on using Alt, the suggested `` isn't that bad either.
 
Old 09-14-2009, 08:48 PM   #6
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Original Poster
Rep: Reputation: 110Reputation: 110
That didn't work. Alt+a or Alt+q causes something else to happen. I am not sure, but it seems to be the shell history. I also noticed that the Delete key no longer performs as delete-char-or-list-or-eof. Only C-d kills the shell.

Anyway, it doesn't work. See? It's not as easy as it seems.
 
Old 09-14-2009, 09:34 PM   #7
adamben
Member
 
Registered: Feb 2007
Distribution: slackware,gentoo,ubuntu
Posts: 50

Rep: Reputation: 17
Quite right - seems my version only allows for "Alt" itself to me used as the modifier.

Good luck. I'll let you know if I come across a reasonable solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mouse keys as modifier keys (ctrl & alt) belda Linux - Desktop 3 06-25-2009 10:37 AM
Screenrc disable CTRL-X for Lockscreen sadarax Linux - General 0 05-21-2009 05:18 PM
Ubuntu hosted by Microsoft Virtual PC - ALT-GR key seized as escape character tinfalco Linux - Newbie 5 03-09-2008 04:19 PM
Reload screenrc without restarting screen? gejr Linux - Software 2 09-13-2007 08:14 AM
Alt Escape - Suse 9.0 Kde --Frozen bubbles stumbling_hack Linux - Software 0 05-16-2004 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration