LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GNU screen - binding Ctrl-Z to meta (https://www.linuxquestions.org/questions/linux-newbie-8/gnu-screen-binding-ctrl-z-to-meta-900171/)

shuple 08-29-2011 10:00 PM

GNU screen - binding Ctrl-Z to meta
 
Hello Group,

I am trying to bind Control-Z to meta key. My .screenrc is configured as follows:

Code:

escape ^Zz
bind '^Z' meta

I get the following error when I run screen.

Code:

.screenrc: bind: character, ^x, or (octal) \032 expected.
Any advise will be greatly appreciated.

Regards,
Shuple

Stéphane Ascoët 08-30-2011 03:02 AM

Ctrz-z in Screen
 
I used to do it for ctrl-c, but I'm not on the concerned computer so I can't look in my config file. Personally I did it to desactivate ctrl-c which closes Screen and all applications inside it, but I found out that setting it as meta for doing this isn't a good idea for several reasons.

shuple 08-31-2011 08:09 PM

Hello Stephane,

Thank you for your advise. However, I would still like to bind Ctrl-z to the meta key. I tried the following code but no luck.

Code:

escape ^Zz
bind \026 meta

Regards,
Shuple

Tinkster 08-31-2011 08:28 PM

Quote:

Originally Posted by shuple (Post 4458411)
Hello Stephane,

Thank you for your advise. However, I would still like to bind Ctrl-z to the meta key. I tried the following code but no luck.

Code:

escape ^Zz
bind \026 meta

Regards,
Shuple


And what error does that give you?


Cheers,
Tink

shuple 08-31-2011 09:14 PM

Hello Tink,

It does not give me any error. The key binding does not work at all.

> Btw, I'll rather attempt to aid you in helping yourself than
> giving you a "turn-key solution". I believe in enabling people
> to help themselves, rather than carrying them everywhere. ;}

Understood.

Regards,
Shuple

Stéphane Ascoët 04-01-2012 03:33 PM

My screenrc
 
Quote:

Originally Posted by Stéphane Ascoët (Post 4456822)
I used to do it for ctrl-c, but I'm not on the concerned computer

Perhaps that's the concerned line is:
bindkey ^c command


All times are GMT -5. The time now is 05:51 AM.