get special characters

Hi,

Is there any possibility to get a code sequence for [CTRL]+[.]
(control+dot) from devc-con and from devi-hirun?

Thanks,
Alain.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

Is there any possibility to get a code sequence for [CTRL]+[.]
(control+dot) from devc-con and from devi-hirun?

In Photon, yes: you just need to look for a key event with
Pk_KF_Sym_Valid unset and Pk_KF_Cap_Valid set in key_flags, key_cap
equal to ‘.’, and Pk_KM_Ctrl set in key_mods. It may not be possible to
generate such an event if your keyboard mapping doesn’t have a key whose
key_cap is ‘.’, or if it maps [CTRL]+[.] to a symbol.

(You could ignore the Pk_KF_Sym_Valid flag and recognize the Ctrl-dot as
a Ctrl-dot even on a keyboard where Ctrl-dot is some letter, but you’d
need to make sure that you don’t do something unexpected when someone
just tries to type that letter. Fortunately, I think this problem is
purely theoretical – there are no keyboard mappings that map Ctrl-dot
to a symbol, are there?)

In text mode or in a pterm, I don’t think you can do it. ASCII only
defines 32 control codes from [CTRL]+[@] to [CTRL]+[_], and the dot is
outside of that range.

Ok Wojtek,
Thanks a lot.

Alain.

Wojtek Lerch a écrit:

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:


Is there any possibility to get a code sequence for [CTRL]+[.]
(control+dot) from devc-con and from devi-hirun?



In Photon, yes: you just need to look for a key event with
Pk_KF_Sym_Valid unset and Pk_KF_Cap_Valid set in key_flags, key_cap
equal to ‘.’, and Pk_KM_Ctrl set in key_mods. It may not be possible to
generate such an event if your keyboard mapping doesn’t have a key whose
key_cap is ‘.’, or if it maps [CTRL]+[.] to a symbol.

(You could ignore the Pk_KF_Sym_Valid flag and recognize the Ctrl-dot as
a Ctrl-dot even on a keyboard where Ctrl-dot is some letter, but you’d
need to make sure that you don’t do something unexpected when someone
just tries to type that letter. Fortunately, I think this problem is
purely theoretical – there are no keyboard mappings that map Ctrl-dot
to a symbol, are there?)

In text mode or in a pterm, I don’t think you can do it. ASCII only
defines 32 control codes from [CTRL]+[@] to [CTRL]+[_], and the dot is
outside of that range.