On Tue, Aug 22, 2000 at 10:47:01PM +0800, Dave A wrote: > Hi, > Can anyone help with this problem. I need to map keys to mean different > things depending on which console I am on. For example, I need to have > a menu screen on one session and an POS order taker on the other. > > Each has to have keys setup to mean different things. So far it appears > that linux only supports a global change. If I map to one console it applies > to all sessions. I need them to act independently. > > Does anyone have a solution or workaround for this? We are using > Debian Potato.
AFAIU, keyboard settings apply to the entire system, not just a particular console. One option might be to alias a command (or write a script) to do both a 'chvt' and a 'loadkeys' to the appropriate keyboard map. You won't get keyboard switching on hotkey terminal switching, but you will be able to switch consoles from the command line. Another option is to use a window manager which allows binding of locale, language, or keyboard settings to particular applications or desktops, and work in X. I believe WindowMaker does this. Adding to this the trick of working with one large terminal window in each of several workspaces, you are pretty much doing what you want, *and* you have hotkey switching (<alt><number>) rather than a command switch. -- Karsten M. Self <kmself@ix.netcom.com> http://www.netcom.com/~kmself Evangelist, Opensales, Inc. http://www.opensales.org What part of "Gestalt" don't you understand? Debian GNU/Linux rocks! http://gestalt-system.sourceforge.net/ K5: http://www.kuro5hin.org GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0
pgpK2jURMlT0D.pgp
Description: PGP signature