'^]' on german keyboard?

Is there any possibility to get the ‘^]’ character (telnet escape)
with the german keyboard driver activated (accept for patching the
kbd file, of course :slight_smile: ) ?


\


| / | __ ) | Karsten.Hoffmann@mbs-software.de MBS-GmbH
| |/| | _ _
\ Phone : +49-2151-7294-38 Karsten Hoffmann
| | | | |
) |__) | Fax : +49-2151-7294-50 Roemerstrasse 15
|| ||// Mobile: +49-172-3812373 D-47809 Krefeld

Karsten.Hoffmann@mbs-software.de wrote:

Is there any possibility to get the ‘^]’ character (telnet escape)
with the german keyboard driver activated (accept for patching the
kbd file, of course > :slight_smile: > ) ?

No. Entering ASCII control character from the keyboard is a text-mode
concept that Photon’s input model doesn’t support very well – pterm
(or, more accurately, PtTerminal) has its own mapping table that tells
it to generate the Ctrl-] from a Photon event with key_cap set to ‘]’.
This does not work on keyboards that don’t have a key whose key_cap is
‘]’.

(Ctrl-backslash and Ctrl-minus have the same problem; and it’s even
worse with the Ctrl-@ and Ctrl-^ characters: to PtTerminal, they really
are Ctrl-2 and Ctrl-6…)


Wojtek Lerch QNX Software Systems Ltd.

If it helps, telnet has an option (-e) to let you select a different escape
character.

Rob Rutherford

<Karsten.Hoffmann@mbs-software.de> wrote in message
news:agb6qg$vih$1@mbs-software.de

Is there any possibility to get the ‘^]’ character (telnet escape)
with the german keyboard driver activated (accept for patching the
kbd file, of course > :slight_smile: > ) ?


\


| / | __ ) | > Karsten.Hoffmann@mbs-software.de > MBS-GmbH
| |/| | _ _
\ Phone : +49-2151-7294-38 Karsten Hoffmann
| | | | |
) |__) | Fax : +49-2151-7294-50 Roemerstrasse 15
|| ||// Mobile: +49-172-3812373 D-47809 Krefeld

Robert Rutherford <ruzz@nospamplease.ruzz.com> wrote:

If it helps, telnet has an option (-e) to let you select a different escape
character.

Yes, I know, but there’s still ‘vim’, which uses ^] as special
character as well …


| / | __ ) | Karsten.Hoffmann@mbs-software.de MBS-GmbH
| |/| | _ _
\ Phone : +49-2151-7294-38 Karsten Hoffmann
| | | | |
) |__) | Fax : +49-2151-7294-50 Roemerstrasse 15
|| ||// Mobile: +49-172-3812373 D-47809 Krefeld

Wojtek Lerch <wojtek_l@yahoo.ca> wrote:

Karsten.Hoffmann@mbs-software.de > wrote:
Is there any possibility to get the ‘^]’ character (telnet escape)
with the german keyboard driver activated (accept for patching the
kbd file, of course > :slight_smile: > ) ?

No. Entering ASCII control character from the keyboard is a text-mode
concept that Photon’s input model doesn’t support very well – pterm
(or, more accurately, PtTerminal) has its own mapping table that tells
it to generate the Ctrl-] from a Photon event with key_cap set to ‘]’.
This does not work on keyboards that don’t have a key whose key_cap is
‘]’.

I didn’t try it, yet:

Under QNX4 I patched the de_DE_102.kbd so that it issues ^] when
CTRL-Ä is pressed (same key as US-ASCII layout). Would this still work
in the Neutrino version?


| / | __ ) | Karsten.Hoffmann@mbs-software.de MBS-GmbH
| |/| | _ _
\ Phone : +49-2151-7294-38 Karsten Hoffmann
| | | | |
) |__) | Fax : +49-2151-7294-50 Roemerstrasse 15
|| ||// Mobile: +49-172-3812373 D-47809 Krefeld

Karsten.Hoffmann@mbs-software.de wrote:

Under QNX4 I patched the de_DE_102.kbd so that it issues ^] when
CTRL-Ä is pressed (same key as US-ASCII layout). Would this still work
in the Neutrino version?

I don’t see why not, provided that you rebuild your kbd file under 6.2.
They’re not compatible with Photon 1.14 kbd files.

Just out of curiosity, how did you patch it – did you change the ‘Ä’
key’s key_cap to ‘]’, or did you make it generate the control character
as a symbol?

\

Wojtek Lerch QNX Software Systems Ltd.

Wojtek Lerch <wojtek_l@yahoo.ca> wrote:

Just out of curiosity, how did you patch it – did you change the ‘Ä’
key’s key_cap to ‘]’, or did you make it generate the control character
as a symbol?

Took me some time :slight_smile:)

Here’s a snippet from my ‘kdef’-file (from QNX4):

KeyType “ThreeLevelCtrl” {
NoSym
NoSym
Unmodified Sym #2
Sym #3
Sym #1
+ Sym #1

Key {
Scan 28
Syms ‘]’ [adiaeresis] [Adiaeresis]
}
}


| / | __ ) | Karsten.Hoffmann@mbs-software.de MBS-GmbH
| |/| | _ _
\ Phone : +49-2151-7294-38 Karsten Hoffmann
| | | | |
) |__) | Fax : +49-2151-7294-50 Roemerstrasse 15
|| ||// Mobile: +49-172-3812373 D-47809 Krefeld

Karsten.Hoffmann@mbs-software.de wrote:

Wojtek Lerch <> wojtek_l@yahoo.ca> > wrote:
Just out of curiosity, how did you patch it – did you change the ‘Ä’
key’s key_cap to ‘]’, or did you make it generate the control character
as a symbol?

Took me some time > :slight_smile:> )

Here’s a snippet from my ‘kdef’-file (from QNX4):

KeyType “ThreeLevelCtrl” {
NoSym <Alt
NoSym <Ctrl
Unmodified Sym #2
Sym #3
Sym #1
+ Sym #1

Key {
Scan 28
Syms ‘]’ [adiaeresis] [Adiaeresis]
}
}

That’s smart. I didn’t even think of doing it that way.

But there also is a simpler way. :slight_smile:

If you don’t need AltGr- to generate a ‘]’ everywhere in
Photon (because AltGr-9 does it already, right?), you could simply
change the key’s definition from the original

Key {
Type “TwoLevelLetter”
Scan 28
Syms [adiaeresis] [Adiaeresis]
}

to

Key ‘]’ {
Type “TwoLevelLetter”
Scan 28
Syms [adiaeresis] [Adiaeresis]
}


Wojtek Lerch QNX Software Systems Ltd.