Re: Mc Digest, Vol 60, Issue 7

2009-04-21 Thread chris glur
On Sun, 19 Apr 2009 00:49:40 -0500 (CDT)
 Theodore Kilgore wrote:
  and switched over to be root in that xterm. In this event, the root user's
  copy of the .Xdefaults file is obviously either not read, or is
  inoperative.

My /root/.Xdefaults has got:--
...
xterm*scrollKey: on
xterm*VT100.Translations: #override\n\
KeyBackSpace: string(0x7F)\n\
KeyDelete: string(\033[3~)\n\
KeyHome: string(\033[1~)\n\
KeyEnd: string(\033[4~)
KeyPressPrior : scroll-back(1,page)\n\
KeyPressNext : scroll-forw(1,page)
... 
So, does that mean that if I can find the 'code' for
eg. alt/F12, I can make that a hot key for bash ?

== Chris Glur.
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: Mc Digest, Vol 60, Issue 7

2009-04-21 Thread Theodore Kilgore



On Wed, 22 Apr 2009, chris glur wrote:


On Sun, 19 Apr 2009 00:49:40 -0500 (CDT)
Theodore Kilgore wrote:
 and switched over to be root in that xterm. In this event, the root user's
 copy of the .Xdefaults file is obviously either not read, or is
 inoperative.

My /root/.Xdefaults has got:--
...
xterm*scrollKey: on
xterm*VT100.Translations: #override\n\
   KeyBackSpace: string(0x7F)\n\
   KeyDelete: string(\033[3~)\n\
   KeyHome: string(\033[1~)\n\
   KeyEnd: string(\033[4~)
   KeyPressPrior : scroll-back(1,page)\n\
   KeyPressNext : scroll-forw(1,page)
... 
So, does that mean that if I can find the 'code' for
eg. alt/F12, I can make that a hot key for bash ?


Hi, Chris,

While I do not know the answer to this with absolute certainty, I suspect 
that such a thing is possible. If I understand your meaning, you want to 
bind F12 to do something, whenever you press it?


You can do that with the standard keyboard utilities. I used to have F12 
configured to turn on midnight commander whenever I hit it. This worked, 
of course, both in a VT and also in an xterm.


Theodore Kilgore
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc