7.0 - Keyboard Controls

7.1 - How do I remap the keyboard? (pcvt/i386 specific)

By using kcon(1), "kcon - keyboard control and remapping for the pcvt driver" Before you can use this, you need to turn on character mapping with scon.


This will load the keycap file for Great Britain. Note that if you run scon -o again, this will turn character mapping back off, which you probably don't want to do if you are using kcon for remapping. Keep this in mind if you use scon in any automated fashion, such as in scripts.

These commands can only be executed from a pcvt virtual terminal.

7.2 - Is there gpm or the like in OpenBSD?

After the release of OpenBSD 2.7 a port of FreeBSD's moused(8) mouse daemon was done. It was modified to use OpenBSD's pcvt(4) console interface. This will be on by default for i386 release 2.8 and beyond. Other platforms cannot make use of this utility yet.

7.3 - Clearing the console each time a user logs out.

To do this you must add a line in /etc/gettytab. Change the section currently:

Add the line ":cl=\E[H\E[2J:" at the end, so it ends up looking like this:

7.4 - Accessing the Console Scrollback Buffer (pcvt/i386 specific)

For OpenBSD 2.6 the ability to scrollback on the console was added for i386 machines. This allows you to see information that has already scrolled past your screen. To be able to move up and down in the buffer simply use the key combination "[shift]+[pgup]" to move up, and "[shift]+[pgdn]". The default scrollback buffer (the amount of pages that you can move up and view) is 8, but this can be changed via the scon(1) utility. For example, to change the number of pages you can scrollback to 10, do this:

This command can only be executed from a pcvt virtual terminal.

7.5 - Why doesn't F9 through F12 switch consoles anymore? (pcvt/i386 specific)

In OpenBSD 2.6 and below, the pcvt console driver on the i386 port allowed you to press F9, F10, F11, F12 and get corresponding virtual terminals 1, 2, 3, and 4. In 2.7 and above, this behavior is removed, because several applications use these keys for input.

[Back to Main Index] [To Section 6.0 - Networking] [To Section 8.0 - General Questions]

[back] www@openbsd.org
$OpenBSD: faq7.html,v 1.20 2001/01/27 22:19:48 ericj Exp $