[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xterm question



On Tue, Feb 15, 2011 at 04:52:09PM -0500, Chris Jones wrote:
> On Tue, Feb 15, 2011 at 01:58:51PM EST, Mike McClain wrote:
<snip> 
> > Rob your answer is way over my head. If I have any hotkeys in
> > X I don't know about them and I certainly don't know how to set one.
> 
> Not it's not (over your head).. :-)
> $ bind '"\C-t": "Hello world"'  
> Then when you type Ctrl-T you get:
> $ Hello World
> 
> Hence:
> $ bind '"\C-t": "xterm^M"'
> .. and press Ctrl-T you start a new xterm - try it.
> 
> Notes: 
> 1. to enter the ^M in the above bind command, you need to type CTRL-V
>    and then hit the Enter key.
> 2. once you get add a binding to work you may want to add it to
>    ~/.xinitrc
> 3. it may be more user-friendly to use your window manager or desktop's
>    capabilities to create such custom bindings.

Hi Chris,
    I've never seen anyone using bind except with respect to binding
sockets in network stuff so never looked at the man page for bind.
Thanks to you I've learned a new trick today which makes it a very good day,

Gracias,
Mike
-- 
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org


Reply to: