Using META and DEL keys in console
Greg 'groggy' Lehey
grog at FreeBSD.org
Tue Mar 1 16:25:53 PST 2005
On Tuesday, 1 March 2005 at 19:43:38 -0300, Alejandro Pulver wrote:
> Hello,
>
> I have a PS/2 PC-101 keyboard.
>
> I would like to use my META (ALT in my keyboard) key instead of ESC in
> console mode. META works fine in an xterm. I also would like to use DEL
> and others.
>
> [description omitted]
There's a special key map for Emacs. Try this:
1. To test it, do:
kbdcontrol -l /usr/share/syscons/keymaps/us.emacs.kbd
2. To have it set automatically on boot, put this in your
/etc/rc.conf:
keymap=us.emacs.kbd
> 2) Some strange thing happens with Emacs in console mode: when I press
> DEL, it is interpreted (literally) as C-h, and C-h is used as
> BACKSPACE.
It's not clear which keys you're talking about here, nor which codes
they're really generating. If you still have problems, please
clarify.
> And C-d acts as DEL.
That doesn't sound very likely, though I haven't played around with
the termcap entries.
> 3) Also DEL does not do anything in xterm.
In X, try running xev to see what it's really generating.
Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050302/8aef2341/attachment.bin
More information about the freebsd-questions
mailing list