LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-05-2007, 03:13 AM   #1
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Rep: Reputation: 16
Define bind key


In the GNU screen application, the bind key C^a that is used in bash, doesn't work anymore, because C^a is the bind key that screen uses for his commands. Is there any other bind key for bash that puts the cursor at the beginning of the line?


Thanks,
Pedro
 
Old 03-06-2007, 12:28 PM   #2
iamnothere
Member
 
Registered: Feb 2007
Location: UK
Distribution: Slamd 64, Slackware
Posts: 46

Rep: Reputation: 16
Yes, you can define whatever keys you want, both in bash and screen. Bash uses the readline library for input, which gets it's key bindings from ~/.inputrc or /etc/inputrc (see the READLINE section in the bash man page for syntax).

However, you might prefer to change the binding for screen. Personally, I use ^W which is unused in all my other apps. You can try this on the command line with -e^Ww (that is, ^W is the escape key, and you press w again to pass a literal 'w' through to the app). You can set this permanently in your ~/.screenrc with 'esacpe ^Ww' or whatever key you want. See the screen man page for more details.

Last edited by iamnothere; 03-06-2007 at 12:30 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to define Fn key for Laptops ??? Delicate_Shadow MEPIS 2 05-14-2006 08:51 AM
Fluxbox - bind one key to a key combo dracolich Linux - General 0 09-01-2005 03:53 PM
bind - how to define cache lifetime? meks Linux - Networking 2 04-03-2005 09:53 AM
How to bind Windows key combos and laptop Fn key MDesigner Linux - Newbie 12 08-15-2004 03:08 AM
intellimouse key bind? spooge Linux - General 2 08-30-2002 08:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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