Re: Ncurses keypad is not properly working in FreeBSD

Archimedes Gaviola <[email protected]> Wed, 25 Jan 2023 12:37:13 +0800
Newsgroups gmane.comp.lib.ncurses.general,gmane.comp.lib.ncurses.bugs
Message-ID <CAJFbk7Hwi6-N7SRiXecUyboGP_Kd9Mm-dRD=4X-bEAu8+75SVw@mail.gmail.com>
--0000000000005d13d405f30f3048
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Brad,

On Tue, Jan 24, 2023 at 3:07 PM Brad Hines <[email protected]>
wrote:

> I=E2=80=99m not sure if this is related to your question or not, but perh=
aps it
> will help.
>
>
>
> I had some issues with certain keycodes, and I recall that there=E2=80=99=
s
> something funny about xterm.
>
It may be that xterm is the source of your problems.  A quick and dirty
> thing to try would be to try a different terminal type.
>

 I've been replacing xterm console to vt100 in one of the TTY consoles in
the /etc/ttys though it gives no more color in the window but the same
behavior with xterm is observed.

ttyv2   "/usr/libexec/getty Pc"         vt100   onifexists secure


>
> I made a note in my code that I found this online that had some info,
> might be of help to you:
>
>
>
>
> https://stackoverflow.com/questions/16975367/ncurses-reading-numpad-keys-=
and-escaping
>
>
>
> That is solving a slightly different set of keys than I was worried
> about.  I am using CDK which is built on top of ncurses, but I ended up
> extending the already-defined key set with my own customer keys to define
> ALT-A to ALT-Z and then ALT-a to ALT-z.
>

Okay, I'll check it out.

Thanks and best regards,
Archimedes

--0000000000005d13d405f30f3048
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Brad,<br></div><br><div class=3D"gmail_quote"><div=
 dir=3D"ltr" class=3D"gmail_attr">On Tue, Jan 24, 2023 at 3:07 PM Brad Hine=
s &lt;[email protected]&gt; wrote:<br></div><blockquote class=3D"gm=
ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,=
204,204);padding-left:1ex"><div class=3D"msg6176190934283424737"><div style=
=3D"overflow-wrap: break-word;" lang=3D"EN-US"><div class=3D"m_617619093428=
3424737WordSection1"><p class=3D"MsoNormal">I=E2=80=99m not sure if this is=
 related to your question or not, but perhaps it will help.</p><p class=3D"=
MsoNormal">=C2=A0</p><p class=3D"MsoNormal">I had some issues with certain =
keycodes, and I recall that there=E2=80=99s something funny about xterm. =
=C2=A0</p></div></div></div></blockquote><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa=
dding-left:1ex"><div class=3D"msg6176190934283424737"><div style=3D"overflo=
w-wrap: break-word;" lang=3D"EN-US"><div class=3D"m_6176190934283424737Word=
Section1"><p class=3D"MsoNormal">It may be that xterm is the source of your=
 problems.=C2=A0 A quick and dirty thing to try would be to try a different=
 terminal type.</p></div></div></div></blockquote><div><br></div><div>=C2=
=A0I&#39;ve been replacing xterm console to vt100 in one of the TTY console=
s in the /etc/ttys though it gives no more color in the window but the same=
 behavior with xterm is observed.<br></div><div><br></div><div>ttyv2 =C2=A0=
 &quot;/usr/libexec/getty Pc&quot; =C2=A0 =C2=A0 =C2=A0 =C2=A0 vt100 =C2=A0=
 onifexists secure</div><div><br></div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd=
ing-left:1ex"><div class=3D"msg6176190934283424737"><div style=3D"overflow-=
wrap: break-word;" lang=3D"EN-US"><div class=3D"m_6176190934283424737WordSe=
ction1"><p class=3D"MsoNormal">=C2=A0</p><p class=3D"MsoNormal">I made a no=
te in my code that I found this online that had some info, might be of help=
 to you:</p><p class=3D"MsoNormal">=C2=A0</p><p class=3D"MsoNormal"><a href=
=3D"https://stackoverflow.com/questions/16975367/ncurses-reading-numpad-key=
s-and-escaping" target=3D"_blank">https://stackoverflow.com/questions/16975=
367/ncurses-reading-numpad-keys-and-escaping</a></p><p class=3D"MsoNormal">=
=C2=A0</p><p class=3D"MsoNormal">That is solving a slightly different set o=
f keys than I was worried about.=C2=A0 I am using CDK which is built on top=
 of ncurses, but I ended up extending the already-defined key set with my o=
wn customer keys to define ALT-A to ALT-Z and then ALT-a to ALT-z.</p></div=
></div></div></blockquote><div><br></div><div>Okay, I&#39;ll check it out.<=
/div></div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote">=
Thanks and best regards,</div><div class=3D"gmail_quote">Archimedes</div><b=
r></div>

--0000000000005d13d405f30f3048--