Function keys with DOSEMU

Function keys with DOSEMU

Post by Ed Haymo » Sun, 27 Mar 1994 11:28:48



Okay... I've been playing with this for a couple hours and still can't
get it to work.  DOSEMU is working great...  except I can't get it to
recognize function keys.

I've looked through the documentation several times, and tried to set up
termcap, to no avail.

I'm running it in an xterm under X.  (It doesn't work outside of X, but
I'd rather have it run under X anyway.)  I set up a copy of the xterm
entry in termcap, deleted existing k? entries, added a k6=Z to it --
I've tried other things, but this ought to work, it seems --, set TERM
to the new termcap entry, and run DOSEMU.  But DOSEMU just accepts the
Z and doesn't try to convert it to the F7 scancode.

Any suggestions?

--
Ed Haymore   |   AA6EJ

 
 
 

Function keys with DOSEMU

Post by Leif Van Ho » Sun, 27 Mar 1994 14:48:54




>I've looked through the documentation several times, and tried to set up
>termcap, to no avail.

>I'm running it in an xterm under X.  (It doesn't work outside of X, but
>I'd rather have it run under X anyway.)  I set up a copy of the xterm
>entry in termcap, deleted existing k? entries, added a k6=Z to it --
>I've tried other things, but this ought to work, it seems --, set TERM
>to the new termcap entry, and run DOSEMU.  But DOSEMU just accepts the
>Z and doesn't try to convert it to the F7 scancode.

>Any suggestions?

>--
>Ed Haymore   |   AA6EJ


I really don't see how dosemu could tell the difference between
'Z' and 'F6'.  Try putting a '\033' in front of Z and changing
the output of F6 with the "*VT100.Translations"  resource.

-Leif

 
 
 

Function keys with DOSEMU

Post by Leif Van Ho » Tue, 29 Mar 1994 06:57:33




>I changed the termcap so that k6=\033Z, and my XTerm resource contains:
>*VT100.Translations: #override <Key>F12: keymap(dos)
>*VT100.dosKeymap.translations: \
>  <Key>F7: string(\033) string("Z") \n\
>  <Key>F11: keymap(None) \n\

>Then I ran dosemu, and all it saw is the escape-Z, whether I did the
>sequence by hand or pressed F7 (after pressing F12, of course).  No
>attempt at interpreting it as a real F7.

>--
>Ed Haymore   |   AA6EJ


It sounds like you should concentrate on finding problems in the
termcap.  I don't see anything wrong with what you have there.
I use pretty much the same setup so I can use DELETE, PGUP, PGDN,
HOME, END, and most of the function keys.  I have dosemu51.  The
version shouldn't matter too much.

- Leif

 
 
 

1. Incorrect function keys in DOSEMU

*** Please reply to my Email address - thanks! ***

I am not easily impressed, but after installing dosemu 0.60.4, I had to admid that
this is really a *very* nice piece of work! It still needs a bit of tuning on my
system, but it's amazing what you can get away with while in a DOS box! It works
excellent, both in console mode and in an Xterm.

However, I have one problem that I can't find in the .DOC or in any of the FAQs
that I have seen. When I'm in the DOS box in console mode, I can't use the
Alt-Function keys. I use the Norton Commander, which relies heavily on function key
combinations line Alt-F1 and Alt-F2. So every time I use these key combinations out
of habit, I find myself in another virtual console.
How can I force DOSemu to pass theyse keystrokes to the DOS application? The actual
switch to another virtual console would then have to be done by
Ctrl-Alt-Functionkey, I imagine.

Second, some of the function keys (without Alt or Shift) are incorrectly mapped
while in an Xterm. The F5 to F10 keys work fine, but F3, for example, is
interpreted as F8 (which will cause the Norton Commander to *delete* instead of
view a document).
Any suggestions what I might do to prevent this?

Please reply to my email address.

All reactions appreciated. Thanks!

Frank

2. Netscape Communicator Problems

3. Problems with Dosemu/Function Keys

4. A tale of terrible .tar troubles...

5. telnet,dosemu,function keys

6. I got a wee problem.

7. DOSEMU configuration, function keys, questions long and detailed..!

8. NFS neighbour table overflow Question

9. Function keys under X-Windows: Why do the generate the keys they do?

10. Function of Keys ALT-CTRL key combinations

11. Processing arrow keys, function keys, etc.

12. Escape key timing issue and terminal function keys OSR5

13. Mapping keys other than the function keys