Linux MS DOS discussions
 help / color / mirror / Atom feed
* CTRL+Fn and ALT+Fn mappings
@ 2007-10-02 16:39 Paolo Gaggini
  2007-10-02 22:43 ` Clarence Dang
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Gaggini @ 2007-10-02 16:39 UTC (permalink / raw)
  To: linux-msdos

Hi all,
here is a problem I've already seen discussed in the list, but with no 
clear answers for me.

This is the context:
- debian 4.0
- dosemu 1.4.0
- an old clipper application for dos, which uses CTRL+Fn and ALT+Fn 
combination keys to work

I launch dosemu fron the console, the application works fine except for 
that key combination. If I press CTRL^cF1 it works as CTRL+F1, but this 
is a problem for me to use that unusual key combination.

My keyboard is set as XLATE (ASCII 8bit) and with the linux command 
"showkey" I can see 4byte combination, for example the CONTROL+F1 
combination give me this 4 hex bytes: 0x1D 0x3B 0xBB 0x9D
How can I modify kbd_slang.c to match this keycodes??
Otherwise, there is a simple way to remapping CTRL+Fn/ALT+Fn ???

Thank you in advance
Paolo


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CTRL+Fn and ALT+Fn mappings
  2007-10-02 16:39 CTRL+Fn and ALT+Fn mappings Paolo Gaggini
@ 2007-10-02 22:43 ` Clarence Dang
  2007-10-03  6:55   ` Paolo Gaggini
  0 siblings, 1 reply; 6+ messages in thread
From: Clarence Dang @ 2007-10-02 22:43 UTC (permalink / raw)
  To: Paolo Gaggini; +Cc: linux-msdos

My wild guess is that your Window Manager (e.g. KDE) is trapping those keys. 
But I may be wrong.

On Wednesday 03 October 2007 2:39 am, Paolo Gaggini wrote:
> Hi all,
> here is a problem I've already seen discussed in the list, but with no
> clear answers for me.
>
> This is the context:
> - debian 4.0
> - dosemu 1.4.0
> - an old clipper application for dos, which uses CTRL+Fn and ALT+Fn
> combination keys to work
>
> I launch dosemu fron the console, the application works fine except for
> that key combination. If I press CTRL^cF1 it works as CTRL+F1, but this
> is a problem for me to use that unusual key combination.
>
> My keyboard is set as XLATE (ASCII 8bit) and with the linux command
> "showkey" I can see 4byte combination, for example the CONTROL+F1
> combination give me this 4 hex bytes: 0x1D 0x3B 0xBB 0x9D
> How can I modify kbd_slang.c to match this keycodes??
> Otherwise, there is a simple way to remapping CTRL+Fn/ALT+Fn ???
>
> Thank you in advance
> Paolo
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CTRL+Fn and ALT+Fn mappings
  2007-10-02 22:43 ` Clarence Dang
@ 2007-10-03  6:55   ` Paolo Gaggini
  2007-10-03  7:03     ` Bart Oldeman
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Gaggini @ 2007-10-03  6:55 UTC (permalink / raw)
  To: linux-msdos

Thank you for the answer, but:

1) the problem affects only the linux console (without X I mean)
2) using X (xorg) it seems works, in this ways:
A) X + Fluxbox: CTRL+Fn works, ALT+Fn switch virtual desktops; no fullscreen
B) X + Blackbox: all keys work; no fullscreen
C) X alone, without any window manager but with xterm attached: keys 
work and fullscreen too.

The problem with the X-solution is that the fonts are ugly (I'm trying 
to solve this) and ofcourse I need install the X server with all 
libraries etc.

My goal is instead to get working a small linux dosbox that can fit in a 
small space (512MB/1GB) and can full run a legacy clipper application, 
so for this I should need CTRL+Fn/ALT+Fn combination in native linux 
console without X.

In the mailing list archive, I've found someone suggesting in the past 
the modification of src/plugin/term/kbd_slang.c file in order to 
remapping that combinations but I can't understand how to do it...



Clarence Dang ha scritto:
> My wild guess is that your Window Manager (e.g. KDE) is trapping those keys. 
> But I may be wrong.
> 
> On Wednesday 03 October 2007 2:39 am, Paolo Gaggini wrote:
>> Hi all,
>> here is a problem I've already seen discussed in the list, but with no
>> clear answers for me.
>>
>> This is the context:
>> - debian 4.0
>> - dosemu 1.4.0
>> - an old clipper application for dos, which uses CTRL+Fn and ALT+Fn
>> combination keys to work
>>
>> I launch dosemu fron the console, the application works fine except for
>> that key combination. If I press CTRL^cF1 it works as CTRL+F1, but this
>> is a problem for me to use that unusual key combination.
>>
>> My keyboard is set as XLATE (ASCII 8bit) and with the linux command
>> "showkey" I can see 4byte combination, for example the CONTROL+F1
>> combination give me this 4 hex bytes: 0x1D 0x3B 0xBB 0x9D
>> How can I modify kbd_slang.c to match this keycodes??
>> Otherwise, there is a simple way to remapping CTRL+Fn/ALT+Fn ???
>>
>> Thank you in advance
>> Paolo
>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CTRL+Fn and ALT+Fn mappings
  2007-10-03  6:55   ` Paolo Gaggini
@ 2007-10-03  7:03     ` Bart Oldeman
  2007-10-03 11:35       ` Paolo Gaggini
  0 siblings, 1 reply; 6+ messages in thread
From: Bart Oldeman @ 2007-10-03  7:03 UTC (permalink / raw)
  To: Paolo Gaggini; +Cc: linux-msdos

On 10/3/07, Paolo Gaggini <paolo@gseserver.net> wrote:
> Thank you for the answer, but:
>
> 1) the problem affects only the linux console (without X I mean)

In that case you should be able to use the raw keyboard ($_rawkeyboard = (1)
or the -k switch).

Unless DOSEMU is run remotely (or even from inside mc), in which case
there is a lot more to configure.

Bart

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CTRL+Fn and ALT+Fn mappings
  2007-10-03  7:03     ` Bart Oldeman
@ 2007-10-03 11:35       ` Paolo Gaggini
  2007-10-03 14:03         ` [solved] " Paolo Gaggini
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Gaggini @ 2007-10-03 11:35 UTC (permalink / raw)
  To: linux-msdos

Already tried, but with no success.

I run dosemu not remotely but just in front of the PC using its attached 
keyboard.
The TERM env var is set to "linux" and the keyboard mode is XLATE 
(ASCII). I've an old PC with redhat9 (not configured by me and I don't 
know who done) in which the CTRL/ALT combinations works fine; in this PC 
I can see that the TERM var is "xterm" (even if I don't use X neither on 
this pc) and the keyboard mode is RAW. In its dosemu.conf $_rawkeyboard 
  is effectively set to 1.
Any idea about this differences?

However, there is somewhere some written docs about the "lot more to 
configure"?

Thank you anyway
Paolo

Bart Oldeman ha scritto:
> On 10/3/07, Paolo Gaggini <paolo@gseserver.net> wrote:
>> Thank you for the answer, but:
>>
>> 1) the problem affects only the linux console (without X I mean)
> 
> In that case you should be able to use the raw keyboard ($_rawkeyboard = (1)
> or the -k switch).
> 
> Unless DOSEMU is run remotely (or even from inside mc), in which case
> there is a lot more to configure.
> 
> Bart
> -
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [solved] Re: CTRL+Fn and ALT+Fn mappings
  2007-10-03 11:35       ` Paolo Gaggini
@ 2007-10-03 14:03         ` Paolo Gaggini
  0 siblings, 0 replies; 6+ messages in thread
From: Paolo Gaggini @ 2007-10-03 14:03 UTC (permalink / raw)
  To: linux-msdos

Solved, excuse me it was a my failure... I misunderstood the comment in 
the dosemu.conf about the $_rawkeyboard, I assumed that "auto" means "1" 
(so I kept auto and not set directly 1)..... sorry to have disturbed you 
for this!

Thank you
Bye

Paolo Gaggini ha scritto:
> Already tried, but with no success.
> 
> I run dosemu not remotely but just in front of the PC using its attached 
> keyboard.
> The TERM env var is set to "linux" and the keyboard mode is XLATE 
> (ASCII). I've an old PC with redhat9 (not configured by me and I don't 
> know who done) in which the CTRL/ALT combinations works fine; in this PC 
> I can see that the TERM var is "xterm" (even if I don't use X neither on 
> this pc) and the keyboard mode is RAW. In its dosemu.conf $_rawkeyboard 
>  is effectively set to 1.
> Any idea about this differences?
> 
> However, there is somewhere some written docs about the "lot more to 
> configure"?
> 
> Thank you anyway
> Paolo
> 
> Bart Oldeman ha scritto:
>> On 10/3/07, Paolo Gaggini <paolo@gseserver.net> wrote:
>>> Thank you for the answer, but:
>>>
>>> 1) the problem affects only the linux console (without X I mean)
>>
>> In that case you should be able to use the raw keyboard ($_rawkeyboard 
>> = (1)
>> or the -k switch).
>>
>> Unless DOSEMU is run remotely (or even from inside mc), in which case
>> there is a lot more to configure.
>>
>> Bart
>> -
>> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-10-03 14:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02 16:39 CTRL+Fn and ALT+Fn mappings Paolo Gaggini
2007-10-02 22:43 ` Clarence Dang
2007-10-03  6:55   ` Paolo Gaggini
2007-10-03  7:03     ` Bart Oldeman
2007-10-03 11:35       ` Paolo Gaggini
2007-10-03 14:03         ` [solved] " Paolo Gaggini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox