Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] How can I enable key bindings for use in Screen???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Tue Oct 13, 2009 11:46 am    Post subject: [Solved] How can I enable key bindings for use in Screen??? Reply with quote

Hi, All...

I tried to launch and use app-misc/screen on one of my gentoo machines, only to discover that the default key bindings didn't work.

Would anyone have a suggestion as to how these key bindings can be enabled??

Thanks!
_________________
"Primum non nocere" ---Galen


Last edited by cgmd on Sun Oct 18, 2009 3:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Thu Oct 15, 2009 5:37 am    Post subject: Reply with quote

check ~/.screenrc and /etc/screenrc

And of course, man screen
_________________
The End of the Internet!
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Thu Oct 15, 2009 11:58 am    Post subject: Reply with quote

truc wrote:
check ~/.screenrc and /etc/screenrc

And of course, man screen


Those configuration files are the same on my affected machine as on my machines in which Screen operates flawlessly with key-bindings...

Perhaps I wasn't specific, enough. On my affected machine, and while in a Screen terminal, I'm unable to use any of the commands that are prompted by "control-a". When I key-in "C-a K", my screen terminal doesn't kill, but rather, I just receive command line output of the letter "K". The same for the other "control-a" commands...

I guess, it's an issue of incorrect binding of the "'control" key with the "a" key.

Do you have any thoughts about this??

Thanks!
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Thu Oct 15, 2009 7:12 pm    Post subject: Reply with quote

well, what's your TERM set to outside screen?

Inside screen, if you type cat, and then ^A, does the 'cat' actually receive something?

Try screen -X escape "^Aa" inside your screen session( ^A is actually one character, you usually can have it by doing ^V^A )
_________________
The End of the Internet!
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Sat Oct 17, 2009 6:08 pm    Post subject: Reply with quote

Hi truc,

if I type:

Code:
screen -X escape "^Aa"


Then the ^A key binding starts to work.

My term is set to: "vt102" outside of screen... What should the TERM be set to (and how should I set it) to get the keybindings to work by default?
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Sat Oct 17, 2009 6:12 pm    Post subject: Reply with quote

The problem was solved by commenting out the line in the .screenrc which changed the command character. :oops:
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sun Oct 18, 2009 11:08 am    Post subject: Reply with quote

[SOLVED];)
_________________
The End of the Internet!
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Sun Oct 18, 2009 3:08 pm    Post subject: Reply with quote

Thanks, truc... :D
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum