LinuxQuestions.org
Visit Jeremy's Blog.
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 01-18-2007, 04:49 AM   #1
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Rep: Reputation: 16
bash key sequence


I have the following keymap set in bash:

dev1fe07 / # bind -p | grep beg
"\M-OH": beginning-of-line<-- What key sequence is that?
"\M-[H": beginning-of-line<-- What key sequence is that?

I know that M stands for the key Alt.

Thanks
Pedro
 
Old 01-18-2007, 06:18 AM   #2
OdieQ
Member
 
Registered: Jan 2004
Location: Stockholm, Sweden
Distribution: Debian, Slackware
Posts: 71

Rep: Reputation: 15
Those key bindings are hard-coded into the readline library, and represent common Home-key codes.

Cheers,
Odie
 
Old 01-19-2007, 03:52 AM   #3
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Original Poster
Rep: Reputation: 16
Where can i see the readline library?

Thanks,
Pedro
 
Old 01-19-2007, 04:32 AM   #4
OdieQ
Member
 
Registered: Jan 2004
Location: Stockholm, Sweden
Distribution: Debian, Slackware
Posts: 71

Rep: Reputation: 15
You could fetch the source from the GNU Readline homepage, but if you intend to edit anything, you should probably go with the source that comes with your distribution.

You run Slackware, no? In that case, recompiling readline shouldn't be a problem. Get the sources from source/l/readline/ in the Slackware distribution, and compile using the included SlackBuild script. This ensures you have it compiled with the same options, which preserves system reliability.

Cheers,
Odie
 
  


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
bfd's bash key bindings Kropotkin *BSD 2 01-04-2007 02:44 PM
bash script Want to capture return key and assign a value procfs Programming 9 07-07-2006 01:38 AM
Bash: how to read <enter> key linmix Programming 3 12-02-2005 04:38 PM
I need a break key sequence!!!!! jsheffie Solaris / OpenSolaris 1 07-12-2005 10:18 AM
How do I map a key sequence to a specific character? QtCoder Linux - General 0 11-28-2003 12:03 PM

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

All times are GMT -5. The time now is 03:44 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
Open Source Consulting | Domain Registration