Re: [Freedos-user] keyboard function and cursor key remapping problem

2007-06-16 Thread Aitor Santamaría
With KEYB you can actually do this, there's a "basic" behaviour which
lets you remap, for cerain scancode, the character it produces. You
can in addition remap the scancode, too (e.g. for german).
Then you have strings, which provide further flexibility.
Do let me/us (Henrique) know if you need some extra help.

Aitor

=== Excerpt of GR.KEY, to remap "Y" key to behave as regular "Z":
[KEYS:kcommon]
...
 21CS  44/z44/Z44/#0  44/#0  44/#26  44/#0
...
===

C is to mean that CapsLock affects this key
S is to mean that scancode has to replace too (format Scancode/char
instead of simply char)

The columns that Henrique has defined in the file are
Normal, Shift, AltGr, Shift+AltGr, Control, Alt

Aitor






2007/6/11, Eric Auer <[EMAIL PROTECTED]>:
>
> Hi people,
>
> somebody asked me the following:
>
> > How can I remap function and cursor keys to those char codes:
> > F1 to F6 to char codes 0xb1 to 0xb6
> > left right up down to char codes 8, 6, 0x0b, 5
>
> I think both KEYB and NANSI could do that, but can anybody
> explain which config files / strings have to be used for
> that and how they are activated in KEYB or NANSI?
>
> Thanks :-)
>
> Eric
>
> PS: The above keyboard remapping is for using a simple DOS
> terminal software to control a Heesemann grinding machine.
> A terminal which can map keycodes itself would also work, so
> suggestions for suitable freeware terminals are welcome, too.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] keyboard function and cursor key remapping problem

2007-06-14 Thread Arkady V.Belousov
Hi!

11-Июн-2007 16:18 [EMAIL PROTECTED] (Eric Auer) wrote to
freedos-user@lists.sourceforge.net:

>> How can I remap function and cursor keys to those char codes:
>> F1 to F6 to char codes 0xb1 to 0xb6
>> left right up down to char codes 8, 6, 0x0b, 5
EA> I think both KEYB and NANSI could do that, but can anybody
EA> explain which config files / strings have to be used for
EA> that and how they are activated in KEYB or NANSI?

 With active ANSI.SYS, you should send these codes specific Esc codes.
For remapping keyboard, there is next code:

"
ESC[code;string;...p
Set Keyboard Strings: Redefines a keyboard key to a specified string.
The parameters for this escape sequence are defined as follows:

* Code is one or more of the values listed in the following table.
   These values represent keyboard keys and key combinations. When using
   these values in a command, you must type the semicolons shown in this
   table in addition to the semicolons required by the escape sequence.
   The codes in parentheses are not available on some keyboards.
   ANSI.SYS will not interpret the codes in parentheses for those
   keyboards unless you specify the /X switch in the DEVICE command for
   ANSI.SYS.

 * String is either the ASCII code for a single character or a string
   contained in quotation marks. For example, both 65 and "A" can be
   used to represent an uppercase A.

IMPORTANT:  Some of the values in the following table are not valid for all
computers. Check your computer's documentation for values that
are different.

Key   Code  SHIFT+code  CTRL+code  ALT+code
───
F10;59  0;840;94   0;104
F20;60  0;850;95   0;105
F30;61  0;860;96   0;106
F40;62  0;870;97   0;107
F50;63  0;880;98   0;108
F60;64  0;890;99   0;109
F70;65  0;900;100  0;110
F80;66  0;910;101  0;111
F90;67  0;920;102  0;112
F10   0;68  0;930;103  0;113
F11   0;133 0;135   0;137  0;139
F12   0;134 0;136   0;138  0;140
HOME (num keypad) 0;71  55  0;119  ──
...
"

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


[Freedos-user] keyboard function and cursor key remapping problem

2007-06-12 Thread Eric Auer

Hi people,

somebody asked me the following:

> How can I remap function and cursor keys to those char codes:
> F1 to F6 to char codes 0xb1 to 0xb6
> left right up down to char codes 8, 6, 0x0b, 5

I think both KEYB and NANSI could do that, but can anybody
explain which config files / strings have to be used for
that and how they are activated in KEYB or NANSI?

Thanks :-)

Eric

PS: The above keyboard remapping is for using a simple DOS
terminal software to control a Heesemann grinding machine.
A terminal which can map keycodes itself would also work, so
suggestions for suitable freeware terminals are welcome, too.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user