ICE

Please login or register.

Login with username, password and session length
Advanced search  

News:

ICETCP.PRO and ICETCP.PLUS are compatible with Windows 11!

Author Topic: Key mapping  (Read 4102 times)

vici

  • Jr. Member
  • **
  • Posts: 5
Key mapping
« on: July 15, 2008, 10:26:38 am »

We are running SCO Open Server on Intel hardware and make extensive use of mscreen. We have a number of older Win 98 PC's running DoubleView (old terminal emulator from Digi) and Wyse 60 compatible terminals (various brands). Mscreen works fine.
For whatever the reason was in the past, the mscreencap uses non-standard function key definitions.
I include the relevant part of the mscreencap file below. I do not want to change this as I would otherwise have to change the function key definitions in all the old PC's and terminals.

I am testing Ice.Ten to replace DoubleView but am unable to get the sequence I want into the function keys.

I want to change the keymap for CTRL-F1 to ^A1^M (CTRL-A, 1, CTRL-M).
I have tried to enter 01h31h0Dh but this is changed automatically to 01h10Dh. I do not mind the change but when I hit that key I get

$ 10Dh
^A10Dh: not found
$

In other words ICE.Ten interprets it as CTRL-A, 10Dh instead of CTRL-A, 1, CTRL-M.

Any suggestions are very welcome because I do not want to have to change the settings in all the old PC's and terminals!

Thanks,

Albert

wy60|wy60w|wy60ak:\
        :who,Shift-F7,^Af\r,:\
        :help,Shift-F8,^Ag\r,:\
        :stop,Shift-F9,^Ah\r,:\
        :quit,Shift-F10,^Ai\r,:\
        :,CTRL-F1,^A1\r,\Ew0:\
        :,CTRL-F2,^A2\r,\Ew1:\
        :,CTRL-F3,^A3\r,\Ew2:\
        :,CTRL-F4,^A4\r,\Ew3:\
        :,CTRL-F5,^A5\r,\Ew4:\
        :,CTRL-F6,^A6\r,\Ew5:\
        :,CTRL-F7,^A7\r,\Ew6:
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Re: Key mapping
« Reply #1 on: July 15, 2008, 05:22:25 pm »

Try 01h10dh
Logged

vici

  • Jr. Member
  • **
  • Posts: 5
Re: Key mapping
« Reply #2 on: July 16, 2008, 08:42:09 am »

I did. Same problem.
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Re: Key mapping
« Reply #3 on: July 17, 2008, 09:27:07 am »

Try 01h31h0dh0ah
Logged

vici

  • Jr. Member
  • **
  • Posts: 5
Re: Key mapping
« Reply #4 on: July 18, 2008, 12:21:08 pm »

I log in and start mscreen. After mscreen starts it displays a message about which keys can be used and which pseudo ttys have been allocated. A new login for the first pseudo tty, ttyp31 is displayed. I then hit CTRL-F2 to switch to the second screen. Ice.Ten interprets the key sequence I entered incorrectly, as is clear from the output below.

Any other suggestions?

Albert



Terminal type is wy60
who            is Shift-F7
help           is Shift-F8
stop           is Shift-F9
quit           is Shift-F10
ttyp31         is CTRL-F1
ttyp32         is CTRL-F2
ttyp33         is CTRL-F3
ttyp34         is CTRL-F4
ttyp35         is CTRL-F5
ttyp36         is CTRL-F6
ttyp37         is CTRL-F7

SCO OpenServer(TM) Release 5 (ttyp31)

login: 20hd0ah
Logged

vici

  • Jr. Member
  • **
  • Posts: 5
Re: Key mapping
« Reply #5 on: July 18, 2008, 12:23:50 pm »

Sorry, mistake in the output. Should read:

login: 20dh0ah
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Re: Key mapping
« Reply #6 on: July 18, 2008, 05:36:56 pm »

Are you using the default wyse60 keymaps in mscreen??

If so there should be absolutely no need to map any function keys!
Logged

vici

  • Jr. Member
  • **
  • Posts: 5
Re: Key mapping
« Reply #7 on: July 21, 2008, 11:24:38 am »

Dear Bob,

In my original post I wrote:

For whatever the reason was in the past, the mscreencap uses non-standard function key definitions.
I include the relevant part of the mscreencap file below. I do not want to change this as I would otherwise have to change the function key definitions in all the old PC's and terminals.


Changing to standard settings is thus an option I would like to avoid.

It seems to me that I have run into a bug in the Ice software since Ice cannot interpret 01h32h0Dh to mean CTRL-A, 2, CTRL-M. Would a bug fix be possible?

Albert
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Re: Key mapping
« Reply #8 on: July 22, 2008, 02:33:02 pm »

01h31h0Dh
works.

It looks like the keymapping letters in hex need to be in upper case. Also there seems to be a glitch in when they are displayed back (like if I set a key, restart the program, verify it works, then do keymapping again, and add another keymap, the previous ones will be incorrectly converted to ascii and resaved).

A way to work around this is to alter the keymap file directly (in notepad for example). The keymap file is in the program directory as keymap.dat. The format is simple. It's one entry per line in hex (no empty lines, comments, etc are allowed). First 2 chars, the total length of the entry, the next 2 chars, the index of the key to be mapped, the rest is the sequence itself. So for example:

Mapping Shift-F5 to your first sequence:
08A001310D
(Ctrl-A 1 <CR>)

When you are done, you can simply copy the dejakey.dat file to all of the PC's that use the same mapping.

The index is found in the manual, also here:
01 tab
02 shift Tab
03 control Tab
04 home
05 shift home
06 control home
07 end
08 shift end
09 control end
0A page up
0B shift page up
0C control page up
0D page down
0E shift page down
0F control page down
10 insert
11 shift insert
12 control insert
13 delete
14 shift delete
15 control delete
16 print screen
17 shift print screen
18 escape
19 shift escape
1A backspace
1B shift backspace
1C enter
1D shift enter
1E keypad enter
1F shift keypad enter
20 keypad +
21 shift keypad +
22 keypad -
23 shift keypad -
24 keypad 5
25 shift keypad 5
26 control backspace
27 control enter
28 control keypad enter
29 control keypad +
2A control keypad -
2B control keypad 5
2C keypad /
2D shift keypad /
2E control keypad /
2F keypad *
30 shift keypad *
31 control keypad *
32-7F reserved
80 up arrow
81 down arrow
82 left arrow
83 right arrow
84-87 shifted arrows
88-8B control arrows
8C-8F alt arrows
90-9B F1-F12
9C-A7 shifted F1-F12
A8-B3 control F1-F12
B4-BF alt F1-F12
C0 alt 9
C1 alt 0
C2 alt -
C3 alt =
« Last Edit: July 22, 2008, 02:35:34 pm by Bob »
Logged
 

Page created in 0.174 seconds with 29 queries.