LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 10: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, 03:02 AM   #2
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
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, 08: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, 08:28 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 09: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, 03:33 PM   #6
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 AM.

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