LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2011, 11:00 PM   #1
shuple
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Rep: Reputation: 0
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
 
Old 08-30-2011, 04:02 AM   #2
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Orleans, 120 km south of Paris
Distribution: Mandrake, Freeduc (the one I'm making), Slackware, MacOS X
Posts: 133

Rep: Reputation: 20
Red face 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.
 
Old 08-31-2011, 09:09 PM   #3
shuple
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
Old 08-31-2011, 09:28 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by shuple View Post
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
 
1 members found this post helpful.
Old 08-31-2011, 10:14 PM   #5
shuple
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
Old 04-01-2012, 04:33 PM   #6
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Orleans, 120 km south of Paris
Distribution: Mandrake, Freeduc (the one I'm making), Slackware, MacOS X
Posts: 133

Rep: Reputation: 20
Post My screenrc

Quote:
Originally Posted by Stéphane Ascoët View Post
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
 
  


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
GNU screen - customizing escape key to Ctrl-; shuple Linux - Software 2 08-26-2011 09:16 PM
What is the meta character for the Ctrl button? SentralOrigin Programming 3 09-02-2008 03:52 PM
installing screen(http://www.gnu.org/software/screen/) dreamlemon Solaris / OpenSolaris 5 09-29-2007 04:36 PM
ctrl + alt + del binding in X windows azrael808 Linux - General 1 08-04-2006 10:49 PM
dark screen when pressing Ctrl + Alt + Backspace or Ctrl + Alt F1-F6 in Gnome or KDE trinoo Slackware 5 01-28-2005 09:13 AM


All times are GMT -5. The time now is 01:02 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