Wayne Topa wrote:
Hugo Vanwoerkom([EMAIL PROTECTED]) is reported to have said:
cga2000 wrote:
On Wed, Sep 20, 2006 at 02:54:59PM EDT, Hugo Vanwoerkom wrote:
Hi,

Things like xbindkeys bind keys for X.
Is there such a thing for non-X? The vt's?
What are you running in that console..?

Are we talking about a shell such as bash .. ?

What do you want to bind..?

Is it something like switching the CapsLock and left Ctrl key that you
have in mind .. ?

Under bash: I want to hit a key and have it execute a script or a program, or whatever.

With xbindkeys I have Alt+F11 bound to halt. Want to do the same in bash.

I use .inputrc for that.

see /usr/share/readline/inputrc

Some of my .inputrc file
# Esc then m
"\em":"/usr/bin/mutt\C-M"
# Esc then f
"\ef":"/usr/bin/mc\C-M"
#Esc then t
"\et":"/usr/bin/htop\C-M"
DEL: backspace
# Reset terminal on F1
"\033[[A": "reset\C-M"
# mutt on F11
"ESC[23~": "mutt\C-M"
# getmail on F12
"ESC[24~": "bin/domail\C-M"


Thanks Wayne, let me try that.






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to