Linux MS DOS discussions
 help / color / mirror / Atom feed
* Keymaps SHIFT+F2 with ssh and dosemu console
@ 2002-04-24 14:48 dosemu
  2002-04-25  4:16 ` Sergey Suleymanov
  0 siblings, 1 reply; 4+ messages in thread
From: dosemu @ 2002-04-24 14:48 UTC (permalink / raw)
  To: Linux-MSDOS Mailing list

Dear all,

I try to use SHIFT keys with dosemu in console mode by a ssh connection
and I use loadkeys on the source to do this with the configuration :

test :

keycode 60 = F2 F112
	control	keycode 60 = F122
	alt	keycode	60 = F132
	control alt keycode 60 = Console_2

String	F2="\033[[B"
String  F122="\036s\033[[B"
String	F132="\036c\033[[B"

loadkeys test

Could you help me 

Why it doesn't work ?

Thanx in advance.

Lionel



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

* Re: Keymaps SHIFT+F2 with ssh and dosemu console
  2002-04-24 14:48 Keymaps SHIFT+F2 with ssh and dosemu console dosemu
@ 2002-04-25  4:16 ` Sergey Suleymanov
  2002-04-25  8:53   ` dosemu
  0 siblings, 1 reply; 4+ messages in thread
From: Sergey Suleymanov @ 2002-04-25  4:16 UTC (permalink / raw)
  To: Linux-MSDOS Mailing list

>>>>> dosemu  writes:

 dosemu> Dear all, I try to use SHIFT keys with dosemu in console mode
 dosemu> by a ssh connection and I use loadkeys on the source to do
 dosemu> this with the configuration :

        Dosemu 1.0.x recognize Shift+F2 as F12 key. You may patch it:

--- dosemu-1.0.2.orig/src/base/keyboard/keyb_slang.c
+++ dosemu-1.0.2/src/base/keyboard/keyb_slang.c
@@ -432,32 +460,36 @@
    {"^(k8)",   KEY_F8},               /* F8 */
    {"^(k9)",   KEY_F9},               /* F9 */
    {"^(k;)",   KEY_F10},              /* F10 */
-   {"^(F1)",   KEY_F11},              /* F11 */
-   {"^(F2)",   KEY_F12},              /* F12 */
+   {"^(F1)",   KEY_F1 | SHIFT_MASK},          /* F11 aka Shift F1 */
+   {"^(F2)",   KEY_F2 | SHIFT_MASK},          /* F12 aka Shift F2 */
    {"^(kI)",   KEY_INS},              /* Ins */
    {"^(#3)",   KEY_INS|SHIFT_MASK},   /* Shift Insert */

        This is a piece of my dosemu-keymap for linux terminal:

keycode  60 = F2
        shift   keycode  60 = F12
        control keycode 60 = F22
        alt keycode 60 = F32
        altgr shift     keycode  60 = F12
        altgr control keycode 60 = F22
        altgr alt keycode 60 = F32
        control alt keycode 60 = Console_2
        altgr control alt keycode 60 = Console_2
        altgr shift control alt keycode 60 = Console_2
string F12 = "\033[24~"
string F22 = "\036c\0362"
string F32 = "\036a\0362"


-- 
  Sergey Suleymanov


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

* Re: Keymaps SHIFT+F2 with ssh and dosemu console
  2002-04-25  4:16 ` Sergey Suleymanov
@ 2002-04-25  8:53   ` dosemu
       [not found]     ` <87adrsxia3.fsf@solt.eatpbank.ru>
  0 siblings, 1 reply; 4+ messages in thread
From: dosemu @ 2002-04-25  8:53 UTC (permalink / raw)
  To: Sergey Suleymanov; +Cc: Linux-MSDOS Mailing list

On Thu, 2002-04-25 at 06:16, Sergey Suleymanov wrote:
> >>>>> dosemu  writes:
> 
>  dosemu> Dear all, I try to use SHIFT keys with dosemu in console mode
>  dosemu> by a ssh connection and I use loadkeys on the source to do
>  dosemu> this with the configuration :
> 
>         Dosemu 1.0.x recognize Shift+F2 as F12 key. You may patch it:
> 
> --- dosemu-1.0.2.orig/src/base/keyboard/keyb_slang.c
> +++ dosemu-1.0.2/src/base/keyboard/keyb_slang.c
> @@ -432,32 +460,36 @@
>     {"^(k8)",   KEY_F8},               /* F8 */
>     {"^(k9)",   KEY_F9},               /* F9 */
>     {"^(k;)",   KEY_F10},              /* F10 */
> -   {"^(F1)",   KEY_F11},              /* F11 */
> -   {"^(F2)",   KEY_F12},              /* F12 */
> +   {"^(F1)",   KEY_F1 | SHIFT_MASK},          /* F11 aka Shift F1 */
> +   {"^(F2)",   KEY_F2 | SHIFT_MASK},          /* F12 aka Shift F2 */
>     {"^(kI)",   KEY_INS},              /* Ins */
>     {"^(#3)",   KEY_INS|SHIFT_MASK},   /* Shift Insert */
> 
>         This is a piece of my dosemu-keymap for linux terminal:
> 
> keycode  60 = F2
>         shift   keycode  60 = F12
>         control keycode 60 = F22
>         alt keycode 60 = F32
>         altgr shift     keycode  60 = F12
>         altgr control keycode 60 = F22
>         altgr alt keycode 60 = F32
>         control alt keycode 60 = Console_2
>         altgr control alt keycode 60 = Console_2
>         altgr shift control alt keycode 60 = Console_2
> string F12 = "\033[24~"
> string F22 = "\036c\0362"
> string F32 = "\036a\0362"
> 
> 
> -- 
>   Sergey Suleymanov
> 
> -
> 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

Dear All,

With this configuration :
keycode 60 = F2 F112
	control keycode 60 = F122
	control alt keycode 60 = Console_2

String F2="\033[[B"
String F112="\036s\033[[B"
String F122="\036c\033[[B"

IT WORK FINE !! : the F2 and the SHIFT + F2
BUT If I need to add ( and I must to add) another key or some keys like :

Keycode 61 = F3 F113
	control keycode 61 = 123
	control alt keycode 61 = Console_3
String F3="\033[[C"
String F113="\036s\033[[C"
String F123="\036c\033[[C"

THEN... the F3 and SHIFT+F3 keys work fine but th F2 and the SHIFT+F2
doesn't work ??!!!

Could you help me please 

Lionel



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

* Re: Keymaps SHIFT+F2 with ssh and dosemu console
       [not found]         ` <873cxkxb8a.fsf@solt.eatpbank.ru>
@ 2002-04-29  6:27           ` Dosemu List
  0 siblings, 0 replies; 4+ messages in thread
From: Dosemu List @ 2002-04-29  6:27 UTC (permalink / raw)
  To: Sergey Suleymanov; +Cc: linux-msdos

Dear all,


To resume :



# Control keys 
# ------------------

keycode 60 = F2 F112
        control keycode 60 = F122
        control alt keycode 60 = Console_2

String F2="\033[[B"
String F112="\036s\033[[B"
String F122="\036c\033[[B"

keycode 61 = F3 F113
        control keycode 61 = F123
        control alt keycode 61 = Console_3

String F3="\033[[C"
String F113="\036s\033[[C"
String F123="\036c\033[[C"

In that case the F2 and SHIFT+F2 keys work fine under dosemu ( by ssh), NOT the F2 and the SHIFT+F23 Keys

If I put the configuration of  keycode 61 before then the F3 and SHIFT+F3 keys work fine but not the F2 and the SHIFT+F2 !!

How can I do ?

I really need a solution or some help.

Thanx in advance.

Lionel



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

end of thread, other threads:[~2002-04-29  6:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-24 14:48 Keymaps SHIFT+F2 with ssh and dosemu console dosemu
2002-04-25  4:16 ` Sergey Suleymanov
2002-04-25  8:53   ` dosemu
     [not found]     ` <87adrsxia3.fsf@solt.eatpbank.ru>
     [not found]       ` <1019726863.7673.29.camel@vaio>
     [not found]         ` <873cxkxb8a.fsf@solt.eatpbank.ru>
2002-04-29  6:27           ` Dosemu List

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