[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can I change the vt switching keys from c-a-Fn to c-a-n?
On Fri, 15 Sep 2000, Sam Roberts wrote:
> Can somebody point me to the place in the kernel where the functions keys are
> hard (I assume, is it configurable?) coded in the pc console driver so that I
> can change it?
You want to look at /sys/arch/i386/isa/pcvt/pcvt_kbd.h.
There are at least two tables there that define key sequence translations.
Pay close attention to the head of these tables and know what each column
is for. Find the entries for the '1' key, '2' key, etc. You want to change
under the "ctrl" column so that instead of '1' translating to '1', that it
runs the cfkey1() function. I think you'll see what I mean when you get
there (check existing entries for function keys to see how they work there
currently).
Look in pcvt_kbd.c
static void
cfkey1(void)
{
if (meta_down)
do_vgapage(0);
}
if (meta_down) checks to see if the ALT key isdown. do_vgapage(0) switches
to the first virtual terminal.
.
: Aaron Campbell <aaron@cs.dal.ca> - [ http://www.biodome.org/~fx ]
`-------------------------------------------------------------------