Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2002 01:50:41 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Jonathan Arnold <jdarnold@buddydog.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: ALT Key
Message-ID:  <20020618225041.GD11499@hades.hell.gr>
In-Reply-To: <200206181812360886.06A9C657@mail.speakeasy.net>
References:  <9273.1024400148@www33.gmx.net> <20020618213810.GC10528@hades.hell.gr> <200206181812360886.06A9C657@mail.speakeasy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-06-18 18:12 -0400, Jonathan Arnold wrote:
> >>  I posted a question regarding how to make the ALT key work as the meta key
> >> in the FreeBSD console with TERM set to cons25 (no X please). I got no
> 
> It ain't easy! I've been playing with it off and on for a little while,
> and still haven't gotten it right.
> 
> Start with 'man kbdmap'. 'man kbdcontrol' also gives some clues. I haven't
> found the 'perfect' keymap. Each of the default ones has problems. Either they
> give you the meta key and take away things like PgUp & PgDn, or the meta
> key stuff doesn't work quite right. If you get a working keymap, let me
> know!

Bah.  I did it very simply, with the following patch to my custom
keymap that I use to write greek on the FreeBSD console:

%%%
--- charon.el.kbd       Fri Apr 19 12:08:34 2002
+++ charon.foo.kbd      Wed Jun 19 01:47:39 2002
@@ -60,7 +60,7 @@
   053   '/'    '?'    nop    nop    '/'    '?'    nop    nop     O
   054   rshift rshift rshift rshift rshift rshift rshift rshift  O
   055   '*'    '*'    nscr   nscr   '*'    '*'    nscr   nscr    O
-  056   lalt   lalt   lalt   lalt   lalt   lalt   lalt   lalt    O
+  056   meta   meta   meta   meta   meta   meta   meta   meta    O
   057   ' '    ' '    nul    ' '    ' '    ' '    ' '   ' '      O
   058   lctrl  lctrl  lctrl  lctrl  lctrl  lctrl  lctrl  lctrl   O
   059   fkey01 fkey13 fkey25 fkey37 scr01  scr11  scr01  scr11   O
%%%

This changes the left keyboard Alt to Meta.  You will have to use the
right Alt key to switch consoles after this is loaded, but nothing
else is affected.  I can still use PageUp, PageDown, and anything else
you can think of.

- Giorgos


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020618225041.GD11499>