LinuxQuestions.org
Review your favorite Linux distribution.
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, 12:52 PM   #1
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Stretch
Posts: 968

Rep: Reputation: 81
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, 09: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, 11:55 PM   #3
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Stretch
Posts: 968

Original Poster
Rep: Reputation: 81
Yes, so what?
 
Old 09-14-2009, 09: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, 09: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, 09:48 PM   #6
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Stretch
Posts: 968

Original Poster
Rep: Reputation: 81
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, 10: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:37 AM
Screenrc disable CTRL-X for Lockscreen sadarax Linux - General 0 05-21-2009 06:18 PM
Ubuntu hosted by Microsoft Virtual PC - ALT-GR key seized as escape character tinfalco Linux - Newbie 5 03-09-2008 05:19 PM
Reload screenrc without restarting screen? gejr Linux - Software 2 09-13-2007 09:14 AM
Alt Escape - Suse 9.0 Kde --Frozen bubbles stumbling_hack Linux - Software 0 05-16-2004 01:49 AM

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

All times are GMT -5. The time now is 07:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration