Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The computing field is always in need of new cliches. -- Alan Perlis


devel / comp.lang.c++ / Re: Parsing multi-byte keystrokes

SubjectAuthor
* Parsing multi-byte keystrokesR.Wieser
+* Re: Parsing multi-byte keystrokesAlf P. Steinbach
|+- Re: Parsing multi-byte keystrokesR.Wieser
|`* Re: Parsing multi-byte keystrokesKeith Thompson
| +* Re: Parsing multi-byte keystrokesPavel
| |`- Re: Parsing multi-byte keystrokesKeith Thompson
| `- Re: Parsing multi-byte keystrokesR.Wieser
+* Re: Parsing multi-byte keystrokesPavel
|+* Re: Parsing multi-byte keystrokesBen Bacarisse
||`* Re: Parsing multi-byte keystrokesR.Wieser
|| +- Re: Parsing multi-byte keystrokesChristian Gollwitzer
|| `* Re: Parsing multi-byte keystrokesBen Bacarisse
||  `* Re: Parsing multi-byte keystrokesR.Wieser
||   `* Re: Parsing multi-byte keystrokesChristian Gollwitzer
||    `* Re: Parsing multi-byte keystrokesR.Wieser
||     +- Re: Parsing multi-byte keystrokesKeith Thompson
||     `* Re: Parsing multi-byte keystrokesChristian Gollwitzer
||      `- Re: Parsing multi-byte keystrokesKeith Thompson
|`* Re: Parsing multi-byte keystrokesR.Wieser
| +* Re: Parsing multi-byte keystrokesKeith Thompson
| |`* Re: Parsing multi-byte keystrokesR.Wieser
| | +* Re: Parsing multi-byte keystrokesMuttley
| | |`- Re: Parsing multi-byte keystrokesR.Wieser
| | `* Re: Parsing multi-byte keystrokesKeith Thompson
| |  `* Re: Parsing multi-byte keystrokesR.Wieser
| |   +- Re: Parsing multi-byte keystrokesKeith Thompson
| |   `* Re: Parsing multi-byte keystrokesScott Lurndal
| |    `- Re: Parsing multi-byte keystrokesR.Wieser
| +* Re: Parsing multi-byte keystrokesScott Lurndal
| |+- Re: Parsing multi-byte keystrokesR.Wieser
| |`- Re: Parsing multi-byte keystrokesKeith Thompson
| +* Re: Parsing multi-byte keystrokesred floyd
| |`* Re: Parsing multi-byte keystrokesKenny McCormack
| | `* Re: Parsing multi-byte keystrokesScott Lurndal
| |  `* Re: Parsing multi-byte keystrokesR.Wieser
| |   `* Re: Parsing multi-byte keystrokesKenny McCormack
| |    `* Re: Parsing multi-byte keystrokesR.Wieser
| |     +* Re: Parsing multi-byte keystrokesBen Bacarisse
| |     |`* Re: Parsing multi-byte keystrokesR.Wieser
| |     | +* Re: Parsing multi-byte keystrokesScott Lurndal
| |     | |`- Re: Parsing multi-byte keystrokesR.Wieser
| |     | +* Re: Parsing multi-byte keystrokesPaavo Helde
| |     | |`- Re: Parsing multi-byte keystrokesR.Wieser
| |     | +- Re: Parsing multi-byte keystrokesBen Bacarisse
| |     | +* Re: Parsing multi-byte keystrokesKeith Thompson
| |     | |`* Re: Parsing multi-byte keystrokesR.Wieser
| |     | | `* Re: Parsing multi-byte keystrokesKeith Thompson
| |     | |  `* Re: Parsing multi-byte keystrokesR.Wieser
| |     | |   +* Re: Parsing multi-byte keystrokesChristian Gollwitzer
| |     | |   |`- Re: Parsing multi-byte keystrokesR.Wieser
| |     | |   +* Re: Parsing multi-byte keystrokesKeith Thompson
| |     | |   |`* Re: Parsing multi-byte keystrokesR.Wieser
| |     | |   | +- Re: Parsing multi-byte keystrokesScott Lurndal
| |     | |   | `- Re: Parsing multi-byte keystrokesJames Kuyper
| |     | |   `* Re: Parsing multi-byte keystrokesMuttley
| |     | |    `* Re: Parsing multi-byte keystrokesR.Wieser
| |     | |     +- Re: Parsing multi-byte keystrokesKenny McCormack
| |     | |     +* Re: Parsing multi-byte keystrokesJames Kuyper
| |     | |     |`* Re: Parsing multi-byte keystrokesScott Lurndal
| |     | |     | `* Re: Parsing multi-byte keystrokesJames Kuyper
| |     | |     |  `* Re: Parsing multi-byte keystrokesKalevi Kolttonen
| |     | |     |   +* Re: Parsing multi-byte keystrokesKeith Thompson
| |     | |     |   |`* Re: Parsing multi-byte keystrokesKalevi Kolttonen
| |     | |     |   | `- Re: Parsing multi-byte keystrokesScott Lurndal
| |     | |     |   `- Re: Parsing multi-byte keystrokesScott Lurndal
| |     | |     `* Re: Parsing multi-byte keystrokesMuttley
| |     | |      +* Re: Parsing multi-byte keystrokesDavid Brown
| |     | |      |+* Re: Parsing multi-byte keystrokesKalevi Kolttonen
| |     | |      ||+* Re: Parsing multi-byte keystrokesKenny McCormack
| |     | |      |||`- Re: Parsing multi-byte keystrokesKalevi Kolttonen
| |     | |      ||`* Re: Parsing multi-byte keystrokesDavid Brown
| |     | |      || +- Re: Parsing multi-byte keystrokesScott Lurndal
| |     | |      || +* Re: Parsing multi-byte keystrokesChris M. Thomasson
| |     | |      || |`- Re: Parsing multi-byte keystrokesScott Lurndal
| |     | |      || `- Re: Parsing multi-byte keystrokesKalevi Kolttonen
| |     | |      |`- Re: Parsing multi-byte keystrokesMuttley
| |     | |      `* Re: Parsing multi-byte keystrokesred floyd
| |     | |       +- Cars (Was: Parsing what is Linux?)Kenny McCormack
| |     | |       `* Re: Parsing multi-byte keystrokesMuttley
| |     | |        `* Cars (Was: Parsing multi-byte keystrokes)Kenny McCormack
| |     | |         `* Re: Cars (Was: Parsing multi-byte keystrokes)Muttley
| |     | |          `* Totally insane (Was: Cars (Was: Parsing multi-byte keystrokes))Kenny McCormack
| |     | |           `- Re: Totally insane (Was: Cars (Was: Parsing multi-byte keystrokes))Muttley
| |     | `* Re: Parsing multi-byte keystrokesJames Kuyper
| |     |  +- Re: Parsing multi-byte keystrokesKenny McCormack
| |     |  +* Re: Parsing multi-byte keystrokesR.Wieser
| |     |  |+* Re: Parsing multi-byte keystrokesJames Kuyper
| |     |  ||`* Re: Parsing multi-byte keystrokesR.Wieser
| |     |  || `* Re: Parsing multi-byte keystrokesJames Kuyper
| |     |  ||  `* Re: Parsing multi-byte keystrokesR.Wieser
| |     |  ||   `* Re: Parsing multi-byte keystrokesJames Kuyper
| |     |  ||    `* Re: Parsing multi-byte keystrokesR.Wieser
| |     |  ||     +- Re: Parsing multi-byte keystrokesScott Lurndal
| |     |  ||     `* Re: Parsing multi-byte keystrokesJames Kuyper
| |     |  ||      +* Re: Parsing multi-byte keystrokesRichard Harnden
| |     |  ||      |`- Re: Parsing multi-byte keystrokesKeith Thompson
| |     |  ||      +* Re: Parsing multi-byte keystrokesR.Wieser
| |     |  ||      |`- Re: Parsing multi-byte keystrokesJames Kuyper
| |     |  ||      `- Re: Parsing multi-byte keystrokesKeith Thompson
| |     |  |`* Re: Parsing multi-byte keystrokesDavid Brown
| |     |  | `* Re: Parsing multi-byte keystrokesR.Wieser
| |     |  `* Re: Parsing multi-byte keystrokesMalcolm McLean
| |     `* Re: Parsing multi-byte keystrokesAlf P. Steinbach
| `* Re: Parsing multi-byte keystrokesPavel
+* Re: Parsing multi-byte keystrokesScott Lurndal
`* Re: Parsing multi-byte keystrokeswij

Pages:123456
Re: Parsing multi-byte keystrokes

<u7n78s$2k1te$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=556&group=comp.lang.c%2B%2B#556

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Fri, 30 Jun 2023 20:32:29 +0200
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <u7n78s$2k1te$2@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7kc0s$26v5q$1@dont-email.me> <8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me> <3FDnM.3755$edN3.1654@fx14.iad>
Injection-Date: Fri, 30 Jun 2023 18:35:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="999079f0f9c12e6b591b4c71d27be2f9";
logging-data="2754478"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/T+qhSCaPOkq5mJPIwuaDWsv900eM0vxIjVxnGEqY7Yg=="
Cancel-Lock: sha1:MI9K0f4Zuso4X+E5uuRsRki3JoE=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-MSMail-Priority: Normal
 by: R.Wieser - Fri, 30 Jun 2023 18:32 UTC

Scott,

> Not everything you "hear" is accurate.

I hope you are aware that the same thing goes for what I "hear" from you
too.

[snip long list of (mostly) functions]

I don't see anything there contradicting Alfs statement.

And as you did not bother to point anything out that does ... You lose.

Regards,
Rudy Wieser

Re: Parsing multi-byte keystrokes

<u7nc46$2kjar$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=557&group=comp.lang.c%2B%2B#557

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: eesn...@osa.pri.ee (Paavo Helde)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Fri, 30 Jun 2023 22:57:57 +0300
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <u7nc46$2kjar$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 30 Jun 2023 19:57:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6330c0ddf870423f00e67ca77412d6b9";
logging-data="2772315"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wdBMviyR5XPwgpFJUgWmfE3SNVobCUpY="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:pChh1EqZL3jCzffGLAGh/bzHJ94=
Content-Language: en-US
In-Reply-To: <u7muuc$2j6av$2@dont-email.me>
 by: Paavo Helde - Fri, 30 Jun 2023 19:57 UTC

30.06.2023 19:12 R.Wieser kirjutas:

> [quote=Alf P. Steinbach, Sun, 25 Jun 2023 15:06:29 -0700]
> curses takes over the entire (text / terminal) screen, keeping track of what
> character is shown at each location and using minimal output to update it as
> needed.
> [/quote]
>
> Which is /absolutily not/ what I'm currently looking for. Thats like using
> a cannon to kill a mosquito.

Yes, that's the way it goes nowadays. But ncurses is not really a
cannon, maybe a water pistol.

$ cat `find ncurses/ -name '*.c' -o -name '*.cpp' -o -name '*.h'` | wc -l
129139

For comparison, this is a cannon:

$ cat `find aws-sdk-cpp/ -name '*.c' -o -name '*.cpp' -o -name '*.h'` |
wc -l
15210261

That's pretty impressive for a library which just copies files from one
place to other (at least that's what we are using it for).

Re: Parsing multi-byte keystrokes

<87fs683cxy.fsf@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=558&group=comp.lang.c%2B%2B#558

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Fri, 30 Jun 2023 21:36:09 +0100
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <87fs683cxy.fsf@bsb.me.uk>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="a4b05ae8aedf0607a60b70f6ae5acfc5";
logging-data="2780720"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ng7OA4y7Yy1UX4lrM4rMHfhbTy0cVq0U="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:W8JI/OiojnClq7q0/uNmF2BsIT8=
sha1:o4CsrxnDO3+T2t0gmRISOHIzcpM=
X-BSB-Auth: 1.5dbc1934e2ff6ca5053c.20230630213609BST.87fs683cxy.fsf@bsb.me.uk
 by: Ben Bacarisse - Fri, 30 Jun 2023 20:36 UTC

"R.Wieser" <address@is.invalid> writes:

>> As far as I can tell there /is/ a solution, but this, being a C++
>> group, is not the best one for the question so maybe no one has
>> given the details.
>
> I assumed that a good percentage of users here would be using Linux, and the
> question would make sense to them. I must have assumed wrong.

Someone using Linux will not necessarily know about the details of
programming with curses. It's just odd to think that an interest in C++
will correlate, significantly, with detailed knowledge about curses.

>> ncurses provides a function to do this parsing with and without
>> a timeout. If that is not, in fact, what you want then you should
>> explain why ncurses's "keypad" setting does not do what you want.
>
> I would need to install it (its not part of the OS installation) and I've
> heard that its a bit "demanding" :

You don't have to install it to read about it!

> [quote=Alf P. Steinbach, Sun, 25 Jun 2023 15:06:29 -0700]
> curses takes over the entire (text / terminal) screen, keeping track of what
> character is shown at each location and using minimal output to update it as
> needed.
> [/quote]
>
> Which is /absolutily not/ what I'm currently looking for. Thats like using
> a cannon to kill a mosquito.

It may not do /only/ what you want, but wanting to parse input into keys
and /not/ wanting the other stuff if rare enough that it's a reasonable
starting point.

--
Ben.

Re: Parsing multi-byte keystrokes

<877crksmps.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=559&group=comp.lang.c%2B%2B#559

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Fri, 30 Jun 2023 13:45:51 -0700
Organization: None to speak of
Lines: 45
Message-ID: <877crksmps.fsf@nosuchdomain.example.com>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="bc073a0f8b755b0a94091368463b169c";
logging-data="2781019"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+IWexBQ5CrWGdnfUKLEyY/"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:hBLUc9OMPIKy3h3HE/GqjvxSTA4=
sha1:evDwqh5s973e+P4fCLGNLVxxQ34=
 by: Keith Thompson - Fri, 30 Jun 2023 20:45 UTC

"R.Wieser" <address@is.invalid> writes:
>> As far as I can tell there /is/ a solution, but this, being a C++
>> group, is not the best one for the question so maybe no one has
>> given the details.
>
> I assumed that a good percentage of users here would be using Linux, and the
> question would make sense to them. I must have assumed wrong.

And yet you're still posting here and *not* posting in an appropriate
place. Why?

>> ncurses provides a function to do this parsing with and without
>> a timeout. If that is not, in fact, what you want then you should
>> explain why ncurses's "keypad" setting does not do what you want.
>
> I would need to install it (its not part of the OS installation) and I've
> heard that its a bit "demanding" :
>
> [quote=Alf P. Steinbach, Sun, 25 Jun 2023 15:06:29 -0700]
> curses takes over the entire (text / terminal) screen, keeping track of what
> character is shown at each location and using minimal output to update it as
> needed.
> [/quote]

You see, this is why you should leave attribution lines alone. Alf
Steinbach didn't write that. I did. (He quoted it in a followup.)

> Which is /absolutily not/ what I'm currently looking for. Thats like using
> a cannon to kill a mosquito.

I have no problem with using a cannon to kill a mosquito. If ncurses
had a good way to detect arrow key input without taking over the whole
screen, I'd recommend that.

Thomas Dickey, in response to a question I posted on Stack Overflow a
few years ago, suggested something that might be the basis of a
solution:

https://stackoverflow.com/q/48715793/827263
https://stackoverflow.com/a/48716136/827263

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: Parsing multi-byte keystrokes

<u7nfp3$2kvh5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=560&group=comp.lang.c%2B%2B#560

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Fri, 30 Jun 2023 17:00:19 -0400
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <u7nfp3$2kvh5$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 30 Jun 2023 21:00:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e1bb5ce49d25e0b78377c519c49211e5";
logging-data="2784805"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qAGNunf8Q8ebqiMWbWLIVtg8mrj0h2WM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:HZ2oK1BCrRuzXLP7+LpMUhM5Yl4=
Content-Language: en-US
In-Reply-To: <u7muuc$2j6av$2@dont-email.me>
 by: James Kuyper - Fri, 30 Jun 2023 21:00 UTC

On 6/30/23 12:12, R.Wieser wrote:
> Ben,
>
>> As far as I can tell there /is/ a solution, but this, being a C++
>> group, is not the best one for the question so maybe no one has
>> given the details.
>
> I assumed that a good percentage of users here would be using Linux, and the
> question would make sense to them. I must have assumed wrong.

Why would you go to a forum where "a good percentage of users would be
using Linux", rather than a forum devoted to Linux, where that
percentage could reasonably be assumed to be 100? It's significantly
less than 100% here - several of the people who post here dismiss any
Linux-specific comment in the belief that Linux is unimportant compared
to Windows.

Re: Parsing multi-byte keystrokes

<u7om17$1mifg$1@news.xmission.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=562&group=comp.lang.c%2B%2B#562

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sat, 1 Jul 2023 07:53:11 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <u7om17$1mifg$1@news.xmission.com>
References: <u79ug0$i1ks$1@dont-email.me> <8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me> <u7nfp3$2kvh5$1@dont-email.me>
Injection-Date: Sat, 1 Jul 2023 07:53:11 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1788400"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Sat, 1 Jul 2023 07:53 UTC

In article <u7nfp3$2kvh5$1@dont-email.me>,
James Kuyper <jameskuyper@alumni.caltech.edu> wrote:
>On 6/30/23 12:12, R.Wieser wrote:
>> Ben,
>>
>>> As far as I can tell there /is/ a solution, but this, being a C++
>>> group, is not the best one for the question so maybe no one has
>>> given the details.
>>
>> I assumed that a good percentage of users here would be using Linux,
>> and the question would make sense to them. I must have assumed wrong.
>
>Why would you go to a forum where "a good percentage of users would be
>using Linux", rather than a forum devoted to Linux, where that
>percentage could reasonably be assumed to be 100? It's significantly
>less than 100% here - several of the people who post here dismiss any
>Linux-specific comment in the belief that Linux is unimportant compared
>to Windows.

Those people are mostly idiots and can (and should) be ignored. So,
really, no worries on that front.

--
A Catholic woman tells her husband to buy Viagra.

A Jewish woman tells her husband to buy Pfizer.

Re: Parsing multi-byte keystrokes

<u7op6j$2shgi$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=563&group=comp.lang.c%2B%2B#563

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sat, 1 Jul 2023 09:49:54 +0200
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <u7op6j$2shgi$2@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com> <1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me> <u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me> <8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me> <u7nc46$2kjar$1@dont-email.me>
Injection-Date: Sat, 1 Jul 2023 08:47:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9538f6438561d69e8401522cc8e8ffa4";
logging-data="3032594"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+UGTW79n3Pfu0IdyD88SiyDdhTIOVfx7coBQusG5+vjg=="
Cancel-Lock: sha1:3pORg8I6igtCJ5/naAswm6vIqog=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Response
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Sat, 1 Jul 2023 07:49 UTC

Paavo,

> $ cat `find aws-sdk-cpp/ -name '*.c' -o -name '*.cpp' -o -name '*.h'` |
> wc -l
> 15210261
>
> That's pretty impressive for a library which just copies files from one
> place to other (at least that's what we are using it for).

With that size I can only assume that it supports copying those files by
"avian carrier" (rfc 1149) for the transport. :-)

> $ cat `find ncurses/ -name '*.c' -o -name '*.cpp' -o -name '*.h'` | wc -l
> 129139

but its not about the size, but about the "side" effects. I don't want to
have to relinquish control of the screen just to be able to get access to
preparsed keystrokes. Thats not an acceptable solution.

Regards,
Rudy Wieser

Re: Parsing multi-byte keystrokes

<u7op6k$2shgi$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=564&group=comp.lang.c%2B%2B#564

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sat, 1 Jul 2023 10:30:55 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <u7op6k$2shgi$3@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com> <1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me> <u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me> <8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me> <u7nfp3$2kvh5$1@dont-email.me>
Injection-Date: Sat, 1 Jul 2023 08:47:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9538f6438561d69e8401522cc8e8ffa4";
logging-data="3032594"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7ohXcMqjf7C0H1C0WOoUUfXx+wEgEpTpogDNPjrpF9w=="
Cancel-Lock: sha1:CUYSc6rMOLYnRpCZa4ZPa2Bqx9Q=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Sat, 1 Jul 2023 08:30 UTC

James,

> Why would you go to a forum where "a good percentage of users would
> be using Linux", rather than a forum devoted to Linux, where that
> percentage could reasonably be assumed to be 100?

If I would know everything (including the knowledge of a more apropriate
newsgroup ) than I would not have needed to post a question to begin with.
Ever thought about that ?

> It's significantly less than 100% here

You don't say.

> several of the people who post here dismiss any Linux-specific comment in
> the belief that Linux is unimportant compared to Windows.

And those are not the ones who would have the Linux knowledge to answer my
current question, so thats fine by me.

But thank you for the warning.

And for the record, if I would have had that other newsgroup in my shortlist
I would have posted there.

Regards,
Rudy Wieser

Re: Parsing multi-byte keystrokes

<u7op6k$2shgi$4@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=565&group=comp.lang.c%2B%2B#565

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sat, 1 Jul 2023 10:33:36 +0200
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <u7op6k$2shgi$4@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com><1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me><u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me><8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me> <877crksmps.fsf@nosuchdomain.example.com>
Injection-Date: Sat, 1 Jul 2023 08:47:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9538f6438561d69e8401522cc8e8ffa4";
logging-data="3032594"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5kH8PyNayv97drO+R+z/abi2OU5qaBmZsqq9VlghCEQ=="
Cancel-Lock: sha1:entBI5M/39M3aNCKlESXqUkS2PA=
X-Priority: 3
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Sat, 1 Jul 2023 08:33 UTC

Keith,

>> I assumed that a good percentage of users here would be using Linux,
>> and the question would make sense to them. I must have assumed wrong.
>
> And yet you're still posting here and *not* posting in an appropriate
> place. Why?

Are you telling me I should just have stopped responding here and taken off
to that other newsgroup ? Where I live thats considered rude going on
offensive.

> You see, this is why you should leave attribution lines alone. Alf
> Steinbach didn't write that. I did. (He quoted it in a followup.)

Funny, I took his name from your post, where the attribution lines where
(ofcourse) present ...

But yes, I made a mistake. As you say, it was you who wrote that, in a
response to Alf. My apologies.

.... But do I at least get points for using the correct date ? :-)

> I have no problem with using a cannon to kill a mosquito. If
> ncurses had a good way to detect arrow key input without taking
> over the whole screen, I'd recommend that.

And in that "no taking over of stuff" case I would most likely have used it.

> Thomas Dickey, in response to a question I posted on Stack Overflow
> a few years ago, suggested something that might be the basis of a
> solution:

Both of those links seem to end up showing the same content.

I skipped the ncurses part, as it, as mentioned by yours truly, wants to
take over the screen. The "How to distinguish between escape and escape
sequence" link shows some code, but as mentioned, I've already got that part
down.

Thanks nonetheless.

Regards,
Rudy Wieser

Re: Parsing multi-byte keystrokes

<4f5b2980-a7ba-44e3-9c9e-a8abe6c67a43n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=566&group=comp.lang.c%2B%2B#566

  copy link   Newsgroups: comp.lang.c++
X-Received: by 2002:ac8:7d14:0:b0:400:823e:58ad with SMTP id g20-20020ac87d14000000b00400823e58admr15445qtb.6.1688205838955;
Sat, 01 Jul 2023 03:03:58 -0700 (PDT)
X-Received: by 2002:a63:1b65:0:b0:55b:61bd:9bc9 with SMTP id
b37-20020a631b65000000b0055b61bd9bc9mr2715024pgm.12.1688205838425; Sat, 01
Jul 2023 03:03:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c++
Date: Sat, 1 Jul 2023 03:03:57 -0700 (PDT)
In-Reply-To: <u7nfp3$2kvh5$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:596e:eafd:8c2c:3202;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:596e:eafd:8c2c:3202
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me> <u7nfp3$2kvh5$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4f5b2980-a7ba-44e3-9c9e-a8abe6c67a43n@googlegroups.com>
Subject: Re: Parsing multi-byte keystrokes
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sat, 01 Jul 2023 10:03:58 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2490
 by: Malcolm McLean - Sat, 1 Jul 2023 10:03 UTC

On Friday, 30 June 2023 at 22:00:37 UTC+1, James Kuyper wrote:
> On 6/30/23 12:12, R.Wieser wrote:
> > Ben,
> >
> >> As far as I can tell there /is/ a solution, but this, being a C++
> >> group, is not the best one for the question so maybe no one has
> >> given the details.
> >
> > I assumed that a good percentage of users here would be using Linux, and the
> > question would make sense to them. I must have assumed wrong.
> Why would you go to a forum where "a good percentage of users would be
> using Linux", rather than a forum devoted to Linux, where that
> percentage could reasonably be assumed to be 100? It's significantly
> less than 100% here - several of the people who post here dismiss any
> Linux-specific comment in the belief that Linux is unimportant compared
> to Windows.
>
Actually the usual pattern is that Linux programmers consider themselves to be technically
and even morally superior to those who program for some other proprietary platforms.
And so Linux-specific discussions get a free pass, unlike those on other operating
systems.

Re: Parsing multi-byte keystrokes

<u7ov78$2t7gk$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=567&group=comp.lang.c%2B%2B#567

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sat, 1 Jul 2023 10:30:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <u7ov78$2t7gk$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me> <u7nfp3$2kvh5$1@dont-email.me>
<4f5b2980-a7ba-44e3-9c9e-a8abe6c67a43n@googlegroups.com>
Injection-Date: Sat, 1 Jul 2023 10:30:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8ac69db8ec59d5545fc26c1146b7d5bb";
logging-data="3055124"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CP/A52Y2ycEUvdV1JpILt"
Cancel-Lock: sha1:km+q/UrM27nt/5PPT9j/TKb6qcM=
 by: Mutt...@dastardlyhq.com - Sat, 1 Jul 2023 10:30 UTC

On Sat, 1 Jul 2023 03:03:57 -0700 (PDT)
Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:
>On Friday, 30 June 2023 at 22:00:37 UTC+1, James Kuyper wrote:
>> On 6/30/23 12:12, R.Wieser wrote:
>> > Ben,
>> >
>> >> As far as I can tell there /is/ a solution, but this, being a C++
>> >> group, is not the best one for the question so maybe no one has
>> >> given the details.
>> >
>> > I assumed that a good percentage of users here would be using Linux, and
>the
>> > question would make sense to them. I must have assumed wrong.
>> Why would you go to a forum where "a good percentage of users would be
>> using Linux", rather than a forum devoted to Linux, where that
>> percentage could reasonably be assumed to be 100? It's significantly
>> less than 100% here - several of the people who post here dismiss any
>> Linux-specific comment in the belief that Linux is unimportant compared
>> to Windows.
>>
>Actually the usual pattern is that Linux programmers consider themselves to be
>technically
>and even morally superior to those who program for some other proprietary
>platforms.

I disagree. We may be snooty about Windows compared to other OS's - not just
linux - but a C++ dev is a C++ dev regardless of platform. Having written C++
on both I am in no wish to hurry back to Windows due to the hoops you often
have to jump through to do basic (for *nix) stuff such as process forking,
multiplexing sockets and the absurd distinction between console and GUI apps.
That said Visual Studio is definately superior as an IDE to anything Linux has
to offer and blows the bug ridden abortion known as Eclipse out of the water.

Re: Parsing multi-byte keystrokes

<87zg4fqx07.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=569&group=comp.lang.c%2B%2B#569

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sat, 01 Jul 2023 11:58:48 -0700
Organization: None to speak of
Lines: 62
Message-ID: <87zg4fqx07.fsf@nosuchdomain.example.com>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me>
<877crksmps.fsf@nosuchdomain.example.com>
<u7op6k$2shgi$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="b7dd3dc39b8f7f61e15fc922c859854e";
logging-data="3163474"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UBOHJdlR2O+jzTBfZ9ZX1"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:U2HmJ9wjMDQ/7hJMNvqEV8uvsI8=
sha1:Tgcu9WJXi4lAo8ED7G95HOJa5jE=
 by: Keith Thompson - Sat, 1 Jul 2023 18:58 UTC

"R.Wieser" <address@is.invalid> writes:
> Keith,
>
>>> I assumed that a good percentage of users here would be using Linux,
>>> and the question would make sense to them. I must have assumed wrong.
>>
>> And yet you're still posting here and *not* posting in an appropriate
>> place. Why?
>
> Are you telling me I should just have stopped responding here and taken off
> to that other newsgroup ? Where I live thats considered rude going on
> offensive.

You could post a single message on this thread saying that you're going
to continue the discussion in comp.unix.programmer. Or you could
cross-post a message to comp.lang.c++ and comp.unix.programmer, with
followups directed to comp.unix.programmer.

You can still do that. It would be far less rude than what you're
doing now.

>> You see, this is why you should leave attribution lines alone. Alf
>> Steinbach didn't write that. I did. (He quoted it in a followup.)
>
> Funny, I took his name from your post, where the attribution lines where
> (ofcourse) present ...
>
> But yes, I made a mistake. As you say, it was you who wrote that, in a
> response to Alf. My apologies.
>
> ... But do I at least get points for using the correct date ? :-)

You get no points for continuing to deliberately flout longstanding
Usenet conventions.

>> I have no problem with using a cannon to kill a mosquito. If
>> ncurses had a good way to detect arrow key input without taking
>> over the whole screen, I'd recommend that.
>
> And in that "no taking over of stuff" case I would most likely have used it.
>
>> Thomas Dickey, in response to a question I posted on Stack Overflow
>> a few years ago, suggested something that might be the basis of a
>> solution:
>
> Both of those links seem to end up showing the same content.

The first link was to my question, the second to Thomas Dickey's
answer. They both appear on the same web page.

> I skipped the ncurses part, as it, as mentioned by yours truly, wants to
> take over the screen. The "How to distinguish between escape and escape
> sequence" link shows some code, but as mentioned, I've already got that part
> down.

You skipped the part where Thomas Dickey demonstrated using ncurses
without taking over the screen.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: Parsing multi-byte keystrokes

<u7q2r1$314bg$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=570&group=comp.lang.c%2B%2B#570

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alf.p.st...@gmail.com (Alf P. Steinbach)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sat, 1 Jul 2023 22:37:53 +0200
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <u7q2r1$314bg$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 1 Jul 2023 20:37:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="05241f7731979eb4022f22fb6ca91f7f";
logging-data="3182960"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xr76dsYCKluZuGE3VsuiU"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:7/uGPXn5N9fnUuZQuinDWbCEL4w=
Content-Language: en-US
In-Reply-To: <u7kc0s$26v5q$1@dont-email.me>
 by: Alf P. Steinbach - Sat, 1 Jul 2023 20:37 UTC

On 2023-06-29 6:37 PM, R.Wieser wrote:
>
> And by the way: I have quite a problem with the ^Z (26) being send as the
> start of a command sequence as well on its own when the ESC key is pressed
> (IOW, no escaping of the ESC key). I do not see any way to, in a stream,
> detect if its one or the other. Its just asking for trouble. :-(

Timing.

- Alf

Re: Parsing multi-byte keystrokes

<u7rb24$38rc1$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=575&group=comp.lang.c%2B%2B#575

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sun, 2 Jul 2023 04:04:19 -0400
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <u7rb24$38rc1$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me>
<u7nfp3$2kvh5$1@dont-email.me> <u7op6k$2shgi$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 2 Jul 2023 08:04:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="56afe2b1b8ff1fd9ff375caa52ee833b";
logging-data="3435905"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TJOIpwu7Sju910sLaQBj3fjCzsocgg3U="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:EypysqvXN2pAz9NzsfnfzOIUId8=
Content-Language: en-US
In-Reply-To: <u7op6k$2shgi$3@dont-email.me>
 by: James Kuyper - Sun, 2 Jul 2023 08:04 UTC

On 7/1/23 04:30, R.Wieser wrote:
> James,
>
>> Why would you go to a forum where "a good percentage of users would
>> be using Linux", rather than a forum devoted to Linux, where that
>> percentage could reasonably be assumed to be 100?
>
> If I would know everything
....
> than I would not have needed to post a question to begin with.

Of course.

[Rearranging slightly]
> (including the knowledge of a more appropriate
> newsgroup )

However, I did expect you to know how to search for an appropriate
newsgroup.

....
> And for the record, if I would have had that other newsgroup in my shortlist
> I would have posted there.

Your message headers indicate that your newsreader is Microsoft Outlook
Express. I use the Outlook app on my smartphone, which has no obvious
way to access usenet newsgroups. I don't know how Outlook works on it's
native platform, Windows, so I'm afraid I can't help you with that.

However, most newsreaders have some way of searching for appropriate
newsgroups on a specified news server. I use Mozilla Thunderbird to
access the Eternal September news server. When I select that server,
right click and select "Subscribe" from the pop-up menu, and type
"Linux" in the search box, it lists several hundred newsgroups, many of
which would be a more appropriate place to post this question than this
newsgroup. I also use Google Groups, which has a similar capability. I
would expect the same would be true of Outlook.

You'll get better answers from people with more Linux-specific knowledge
in those newsgroups than here.

And of course, usenet newsgroups are far from being the only forums for
discussing Linux. See <https://www.linux.org/forums/>, for instance.

Re: Parsing multi-byte keystrokes

<u7rehv$3996f$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=576&group=comp.lang.c%2B%2B#576

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sun, 2 Jul 2023 09:42:04 +0200
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <u7rehv$3996f$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com> <1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me> <u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me> <u7q2r1$314bg$1@dont-email.me>
Injection-Date: Sun, 2 Jul 2023 09:03:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84638297fa23788570918d7b67b1d1af";
logging-data="3450063"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vQnUZAup0IwG03aZhZklOwKr7XWZ9Ov0M7+NMdoekqg=="
Cancel-Lock: sha1:Ds5KOhZxbGtnJT3wEWEDwHMNCHw=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Sun, 2 Jul 2023 07:42 UTC

Alf,

>> And by the way: I have quite a problem with the ^Z (26) being send as the
>> start of a command sequence as well on its own when the ESC key is
>> pressed
>> (IOW, no escaping of the ESC key). I do not see any way to, in a stream,
>> detect if its one or the other. Its just asking for trouble. :-(
>
> Timing.

Yep, thats what I used.

But now imagine that I'm not using it to parse a raw, but instead a cooked
(line-based) input. Bye-bye timing. :-(

Granted, I did not indicate I would be using my/the parser for that (quite
the opposite actually), but it did already enter my mind.

Regards,
Rudy Wieser

Re: Parsing multi-byte keystrokes

<u7rehv$3996f$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=577&group=comp.lang.c%2B%2B#577

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sun, 2 Jul 2023 11:03:42 +0200
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <u7rehv$3996f$2@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com><1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me><u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me><8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me><877crksmps.fsf@nosuchdomain.example.com><u7op6k$2shgi$4@dont-email.me> <87zg4fqx07.fsf@nosuchdomain.example.com>
Injection-Date: Sun, 2 Jul 2023 09:03:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84638297fa23788570918d7b67b1d1af";
logging-data="3450063"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186voyInIpX2/55f8jPHLTn/WU+dQtFigtzPbAtdGi56Q=="
Cancel-Lock: sha1:UvwKF1Cojl3Fl6B2mcKgFQvSjW8=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MSMail-Priority: Normal
X-Priority: 3
 by: R.Wieser - Sun, 2 Jul 2023 09:03 UTC

Keith,

> You could post a single message on this thread saying that
> you're going to continue the discussion in comp.unix.programmer.

Ah yes, about that : Are you aware that Linux != Unix ? I might well be
told to leave that group for the same reason you are trying to eject me from
this one ...

> You can still do that. It would be far less rude than what
> you're doing now.

Which is ? That I ignore your "I'm a Windows C++ programmer and could not
care less about the Linux C++ programmers that are here" attitude ?

Something about the pot calling the kettle black ...

> You get no points for continuing to deliberately flout longstanding
> Usenet conventions.

And you get no points from trying to push such conventions upon others as if
they are Laws.

You also should re-read it. It rather specifically tells you that what
they say in there are /not/ strict rules, but *guidelines* for keeping
usenet conversations running smoothly.

And seeing how you are able to pick out my responses to you without showing
any problems with it I think that my "just the posters name" works quite
well.

And to be frank about it, in this newsgroup (and several others that I
visit) you are one of less than a handfull in many years having a problem
with it. What does that tell you ?

IOW, you're behaving like the equivalent of a "grammar nazi". And I don't
like them either.

> You skipped the part where Thomas Dickey demonstrated using
> ncurses without taking over the screen.

Lol.

Third paragraph, first sentence :

"Here's a *non-working* example of what I'm trying to do."

(bolding by me).

A quick peek at the result could have told you the same :

"
Press UP, DOWN, Escape, LEFT, RIGHT
Incorrect input: (-1, -1, -1, -1, -1)
"

He even mentions the "intimately tied to taking over the entire screen" as a
standing problem in his "update" paragraph.

Regards,
Rudy Wieser

Re: Parsing multi-byte keystrokes

<u7rfu8$39da1$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=578&group=comp.lang.c%2B%2B#578

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sun, 2 Jul 2023 11:27:28 +0200
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <u7rfu8$39da1$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com> <1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me> <u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me> <8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me> <u7nfp3$2kvh5$1@dont-email.me> <u7op6k$2shgi$3@dont-email.me> <u7rb24$38rc1$1@dont-email.me>
Injection-Date: Sun, 2 Jul 2023 09:27:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84638297fa23788570918d7b67b1d1af";
logging-data="3454273"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lwQMwAELq4FVrZe/Q/UxUbEw1zD6t7Kmoq/GtojB5IA=="
Cancel-Lock: sha1:LRosLg375bO2Nb+gyAO9lehk53s=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Sun, 2 Jul 2023 09:27 UTC

James,

> However, I did expect you to know how to search for an appropriate
> newsgroup.
....
> it lists several hundred newsgroups,

Yeah, when I did ask my newsreader I got such a long list too.

> many of which would be a more appropriate place

And you know that one of those others would be more apropriate .... how ?
Just by looking at the name ? I did, and I by it posted here.

IOW, I (and you too) have to make a choice on very limited information. And
when I than do I get people like keith and you telling me I did it wrong
*and wave me off* (1) to find another - which I would need to choose on the
same, limited info I used for this one.

(1) As in : I could not care where you go as long as its not here. Which is
a few notches below being helpfull and causes me to ignore it. Sorry (not
sorry).

And I'll be damned if I would just subscribe to all of them, follow them for
a few weeks to figure out what they are all about, and than pick one (with
possibly still getting a "not here" response).

Besides, keith isn't all that good in picking a "more apropriate" newsgroup
either, and you are not even trying ...

> You'll get better answers from people with more Linux-specific knowledge
> in those newsgroups than here.

:-) The Linux people here will /really/ like you for implicitily calling
them non-knowledgable.

Regards,
Rudy Wieser

Re: Parsing multi-byte keystrokes

<u7sh00$3cj3a$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=579&group=comp.lang.c%2B%2B#579

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sun, 2 Jul 2023 14:51:43 -0400
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <u7sh00$3cj3a$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me>
<u7nfp3$2kvh5$1@dont-email.me> <u7op6k$2shgi$3@dont-email.me>
<u7rb24$38rc1$1@dont-email.me> <u7rfu8$39da1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 2 Jul 2023 18:51:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="56afe2b1b8ff1fd9ff375caa52ee833b";
logging-data="3558506"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XHJ5g8NCLYMb2/FgfIKZYJk++8zEXp1A="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:yL4iRxZhmBNcxdnLkeoTwTlUx/o=
In-Reply-To: <u7rfu8$39da1$1@dont-email.me>
Content-Language: en-US
 by: James Kuyper - Sun, 2 Jul 2023 18:51 UTC

On 7/2/23 05:27, R.Wieser wrote:
> James,
>
>> However, I did expect you to know how to search for an appropriate
>> newsgroup.
> ...
>> it lists several hundred newsgroups,
>
> Yeah, when I did ask my newsreader I got such a long list too.
>
>> many of which would be a more appropriate place
>
> And you know that one of those others would be more apropriate .... how ?

Primarily because I know that this is outside the scope of this newsgroup.

> Just by looking at the name ? I did, and I by it posted here.

You came here with a question that was primarily about Linux
functionality, because you thought that "C++" in the newsgroup name was
a stronger indication of appropriateness than "Linux"?

> IOW, I (and you too) have to make a choice on very limited information.

No, we don't. One of the best ways to find out which newsgroup is most
appropriate for a given topic is to do a search for messages containing
relevant keywords in Google Groups. Not all such messages will be about
the topic you're actually interested in, but you should be able to scan
the first several pages of search results to identify a newsgroup that's
appropriate.
On the other hand, if "C++" strikes you as a more relevant keyword than
"linux", your judgement of such matters is not to be trusted, so perhaps
asking for advice would be a better idea.

> Besides, keith isn't all that good in picking a "more apropriate" newsgroup
> either, and you are not even trying ...

It's your search, I was just explaining how to conduct it. I've used and
programmed exclusively on Linux, both at work and at home, for nearly
three decades, but I've never had any reason to worry about the issues
you're worrying about, so I'm not sure where to direct you.
More importantly, as a general rule, when I am looking for OS-specific
solutions, I'm more interested in a POSIX generic solution rather than a
Linux-specific one. If such a solution would be acceptable to you, I'd
recommend going to comp.unix.programmer

>> You'll get better answers from people with more Linux-specific knowledge
>> in those newsgroups than here.
>
> :-) The Linux people here will /really/ like you for implicitily calling
> them non-knowledgable.

Huh?
I suggested nothing of the kind. Only that there are far fewer Linux
experts here than you could expect to find in an active Linux oriented
group. The average level of Linux expertise in this group is lower that
of the linux groups. The minimum level of linux expertise in this
newsgroup is 0, but should be non-zero in those newsgreups.

Re: Parsing multi-byte keystrokes

<u7snst$3dlou$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=580&group=comp.lang.c%2B%2B#580

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sun, 2 Jul 2023 22:49:17 +0200
Organization: A noiseless patient Spider
Lines: 93
Message-ID: <u7snst$3dlou$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com> <1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me> <u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me> <8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me> <u7nfp3$2kvh5$1@dont-email.me> <u7op6k$2shgi$3@dont-email.me> <u7rb24$38rc1$1@dont-email.me> <u7rfu8$39da1$1@dont-email.me> <u7sh00$3cj3a$1@dont-email.me>
Injection-Date: Sun, 2 Jul 2023 20:49:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84638297fa23788570918d7b67b1d1af";
logging-data="3594014"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+MR6ldEqtMebkFY/RCp1SazKDS7cYdDX2FbSe62VElwg=="
Cancel-Lock: sha1:ItObig8tH3nQpp+Me/pkQCkUq5o=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
 by: R.Wieser - Sun, 2 Jul 2023 20:49 UTC

James,

>> And you know that one of those others would be more apropriate .... how ?
>
> Primarily because I know that this is outside the scope of this newsgroup.

Wrong answer. Perhaps this is, outof all the newsgroups, the most
apropriate. But you would not know and you do not care. As long as I
believe your claim and leave.

> You came here with a question that was primarily about Linux
> functionality,
> because you thought that "C++" in the newsgroup name was a stronger
> indication of appropriateness than "Linux"?

I already answered that. At least twice. You going in circles doesn't work
for me. Sorry.

> One of the best ways to find out which newsgroup is most appropriate for
> a given topic is to do a search for messages containing relevant keywords
> in Google Groups.

Nice. So you are going to do that for me ? 'Cause I have zero wish to sign
up for "google groups". Or any other like it. I already have to see them
necro-bumping multiple years old posts or adverts for viagra, hacking
services and crap like that.

besides, I already did my searching. Quite a bit of it actually. If my
answer would have been in there I would have already found it, and not have
posted here.

> On the other hand, if "C++" strikes you as a more relevant keyword than
> "linux", your judgement of such matters is not to be trusted, so perhaps
> asking for advice would be a better idea.

Good, than we are now on the same page. I seek advice, and you think me
asking for advice is a good idea. So ? Or are you no Linux person ?
Actualy, I don't think I have to ask that.

>> Besides, keith isn't all that good in picking a "more apropriate"
>> newsgroup
>> either, and you are not even trying ...
>
> It's your search, I was just explaining how to conduct it.

As I already explained to you, no you didn't.

> If such a solution would be acceptable to you, I'd recommend going to
> comp.unix.programmer

Another nitwit who doesn't seem to understand that Unix != Linux.

As I said it to Keith, I might there well be asked to leave for the same
reason you use to try to eject me here. And where you don't, they would
actualy have a point.

>> :-) The Linux people here will /really/ like you for implicitily calling
>> them non-knowledgable.
>
> Huh?
> I suggested nothing of the kind.

You're not really smart, are you ? I ask a Linux and programming related
question as I assume that there would also be linux people here, some of
which might well know what the answer to my question is.

But you're saying that my question is not apropriate here. I can only
assume that you do not think the Linux people could know the answer.

Actually, someone has already proven you wrong in that regard.

> The minimum level of linux expertise in this newsgroup is 0

You like to throw some great-sounding but actually meaning absolutily
nothing blurbs like that around, do you ? First the "significantly less
than a 100%" - from a 100% you can only go down, and "significantly" can
mean about /anything/ in that 100% range. Is "5% less" significant ? Is
"50% less" significant ? Well, that depends on what that "significant" is
applied.

Yes, ofcourse the mininmum level is Zero. Perhaps one of the Windows people
has not ever heard about that OS (hard to imagine, but hey, its possible).

In the same vein I can, with absolute certainty, tell you that the maximum
level of linux expertise here is 100%.

Next you will probably try to tell me that water is wet. Or is that a bit
of a spoiler ?

Regards,
Rudy Wieser

Re: Parsing multi-byte keystrokes

<u7spco$3dqj1$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=581&group=comp.lang.c%2B%2B#581

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aurio...@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sun, 2 Jul 2023 23:15:04 +0200
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <u7spco$3dqj1$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me>
<877crksmps.fsf@nosuchdomain.example.com> <u7op6k$2shgi$4@dont-email.me>
<87zg4fqx07.fsf@nosuchdomain.example.com> <u7rehv$3996f$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 2 Jul 2023 21:15:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f17bfa92e08865354e117c8d1e31bbeb";
logging-data="3598945"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iXbRZtPLAK9KFy0Nmktdj3Vn71n3wtKk="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.12.0
Cancel-Lock: sha1:my/FGdJb7gi5aHN6HFvJKOCalQA=
In-Reply-To: <u7rehv$3996f$2@dont-email.me>
 by: Christian Gollwitzer - Sun, 2 Jul 2023 21:15 UTC

Am 02.07.23 um 11:03 schrieb R.Wieser:
> Keith,
>> You skipped the part where Thomas Dickey demonstrated using
>> ncurses without taking over the screen.
>
> Lol.
>
> Third paragraph, first sentence :
>
> "Here's a *non-working* example of what I'm trying to do."
>
> (bolding by me).

Is it your first time you read StackOverflow? Of course, the one who
asks the question has a non-working solution. You should read the
answer, not the question.

Christian

Re: Parsing multi-byte keystrokes

<877crix7ip.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=582&group=comp.lang.c%2B%2B#582

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sun, 02 Jul 2023 15:39:42 -0700
Organization: None to speak of
Lines: 76
Message-ID: <877crix7ip.fsf@nosuchdomain.example.com>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me>
<877crksmps.fsf@nosuchdomain.example.com>
<u7op6k$2shgi$4@dont-email.me>
<87zg4fqx07.fsf@nosuchdomain.example.com>
<u7rehv$3996f$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="51a050befc0255bef2a3c1696b4bff00";
logging-data="3618952"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pzyxjUqdiFKaQe4FZdgDC"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:Oo6BYUoRtkHx0q+x/CAAxgKid+Q=
sha1:BaLuZ9GKBUpzqsK5uCr5bDjhWi4=
 by: Keith Thompson - Sun, 2 Jul 2023 22:39 UTC

"R.Wieser" <address@is.invalid> writes:
> Keith,
>
>> You could post a single message on this thread saying that
>> you're going to continue the discussion in comp.unix.programmer.
>
> Ah yes, about that : Are you aware that Linux != Unix ? I might well be
> told to leave that group for the same reason you are trying to eject me from
> this one ...

Yes, I'm aware. At least the first part of your original question was
not specific to Linux. Recognizing arrow keys on input, for example,
can be done using interfaces defined by POSIX, which is supported by all
Unix-like systems. The curses interface (which provides similar
functionality in a way that doesn't quite meet your requirements) is
defined by POSIX.

You mentioned the "console", apparently referring to the Linux virtual
console, but in most ways it behaves very similarly to any other modern
terminal emulator.

I'm not the only person who has suggested that comp.unix.programmer
would be a better place for your question. Apparently you'd rather
stay here and argue with people who are trying to help you.

Detecting modifier keys (shift, control, alt) separately is another
matter. It's impossible in some contexts. Detecting them on a
Linux virtual console is probably possible, but I don't know how.
That might be a question for a Linux-specific newsgroup; I don't know
which one, but perhaps something under the comp.os.linux.* hierarchy.
"man console_codes" might be helpful; it does discuss modifier keys.

>> You can still do that. It would be far less rude than what
>> you're doing now.
>
> Which is ? That I ignore your "I'm a Windows C++ programmer and could not
> care less about the Linux C++ programmers that are here" attitude ?

No, you've been posting here repeatedly without asking anything that's
specific to C++.

[...]

>> You skipped the part where Thomas Dickey demonstrated using
>> ncurses without taking over the screen.
>
> Lol.
>
> Third paragraph, first sentence :
>
> "Here's a *non-working* example of what I'm trying to do."
>
> (bolding by me).

Yes, I know. I wrote that in my question.

> A quick peek at the result could have told you the same :
>
> "
> Press UP, DOWN, Escape, LEFT, RIGHT
> Incorrect input: (-1, -1, -1, -1, -1)
> "
>
> He even mentions the "intimately tied to taking over the entire screen" as a
> standing problem in his "update" paragraph.

Yes, *I* wrote that as part of the *question*. I was suggesting
that you read Thomas Dickey's *answer*. (FYI, he's been maintaining
ncurses since 1996.)

Don't expect any more help from me.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: Parsing multi-byte keystrokes

<u7svbh$3eg6v$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=583&group=comp.lang.c%2B%2B#583

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Sun, 2 Jul 2023 18:56:49 -0400
Organization: A noiseless patient Spider
Lines: 84
Message-ID: <u7svbh$3eg6v$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com>
<1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me>
<u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me>
<8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me>
<u7nfp3$2kvh5$1@dont-email.me> <u7op6k$2shgi$3@dont-email.me>
<u7rb24$38rc1$1@dont-email.me> <u7rfu8$39da1$1@dont-email.me>
<u7sh00$3cj3a$1@dont-email.me> <u7snst$3dlou$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 2 Jul 2023 22:56:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9b2d7aee73b3aa34e022e17eb279a6cb";
logging-data="3621087"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+Dj3ItSSF+iGiv4xNUky9QVcQbHeQqM8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:rgMvj6Ai4p4raN4XBiOXdlJxQJI=
In-Reply-To: <u7snst$3dlou$1@dont-email.me>
Content-Language: en-US
 by: James Kuyper - Sun, 2 Jul 2023 22:56 UTC

On 7/2/23 16:49, R.Wieser wrote:
....
> Nice. So you are going to do that for me ? 'Cause I have zero wish to sign
> up for "google groups". Or any other like it. I already have to see them
> necro-bumping multiple years old posts or adverts for viagra, hacking
> services and crap like that.

"comp.os.linux.answers" appears to be a fairly active linux oriented
group, which frequently contains messages matching my search terms
"linux console raw keyboard terminal". I would still suggest that
<https://www.linux.org/forums/> might be more useful than any Usenet
Newsgroup.

Interestingly enough, when I also included "multi-byte", the messages
retrieved were posted almost exclusively in various newsgroups that had
"freebsd" rather than "linux" in their names. The reason might be
obvious to someone who knows more than I do about the relationship
between freebsd and linux.

> Good, than we are now on the same page. I seek advice, and you think me
> asking for advice is a good idea. So ? Or are you no Linux person ?

As I indicated, I have been using almost exclusively Linux for 30 years
now. I also don't know how to solve your problem to your satisfaction.
If there is in fact a solution, you'll need someone with more Linux
expertise than me.

[Restoring snipped context]
>> I'm more interested in a POSIX generic solution rather than a Linux-specific one.
[End of restored context]
>> If such a solution would be acceptable to you, I'd recommend going to
>> comp.unix.programmer
>
> Another nitwit who doesn't seem to understand that Unix != Linux.

I very clearly distinguished Unix and Linux in the part of my message
that you chose to snip - how could you derive from that the conclusion
that I was confusing them?

>>> :-) The Linux people here will /really/ like you for implicitily calling
>>> them non-knowledgable.
>>
>> Huh?
>> I suggested nothing of the kind.
>
> You're not really smart, are you ? I ask a Linux and programming related
> question as I assume that there would also be linux people here, some of
> which might well know what the answer to my question is.
>
> But you're saying that my question is not apropriate here. I can only
> assume that you do not think the Linux people could know the answer.

No, I think you'll get answers of varying quality, depending upon how
subtle the issue is. The biggest danger is that if a linux issue is too
subtle, an answer given by a Linux user in a C++ group might be wrong in
a way that's too subtle for any of the other Linux users here to catch.
That's less likely to be the case in a newsgroup devoted to Linux.

> Actually, someone has already proven you wrong in that regard.

Oh - who? The only response you've received that you haven't denigrated
yet was the one suggesting that you use readline(), and you haven't
posted any follow-up indicating that it actually met your needs. If
that's the solution to your problem, then your description of your
problem made it seem far more complicated than it actually was.

....
> Yes, ofcourse the mininmum level is Zero. Perhaps one of the Windows people
> has not ever heard about that OS (hard to imagine, but hey, its possible).

It's not just one such person - there's many people here who have made
it quite clear that they don't know much of anything about Linux, and
couldn't care less.

> In the same vein I can, with absolute certainty, tell you that the maximum
> level of linux expertise here is 100%.

That seems incredibly unlikely to me. I've seen the levels of Linux
expertise displayed both here and in comp.UNIX.programmer - those levels
are much higher in c.u.p., which is entirely reasonable. If a lowly UNIX
group displays more linux expertise than a c.l.c++, how much higher
should the Linux expertise be in a group that actually has "linux" in
the group name?

Re: Parsing multi-byte keystrokes

<u7u2na$3lmer$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=584&group=comp.lang.c%2B%2B#584

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Mon, 3 Jul 2023 09:12:54 +0200
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <u7u2na$3lmer$1@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com> <1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me> <u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me> <8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me> <877crksmps.fsf@nosuchdomain.example.com> <u7op6k$2shgi$4@dont-email.me> <87zg4fqx07.fsf@nosuchdomain.example.com> <u7rehv$3996f$2@dont-email.me> <u7spco$3dqj1$1@dont-email.me>
Injection-Date: Mon, 3 Jul 2023 09:00:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="705a36d2aa933d0cd20d717b767c50f2";
logging-data="3856859"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1NEFB0ku6Du7TtCtSsfHBCHCM5hitdtzQHAJfQYaw9g=="
Cancel-Lock: sha1:8/svhNYogh0+9AS2WVHsmUG52qs=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
 by: R.Wieser - Mon, 3 Jul 2023 07:12 UTC

Christian,

> You should read the answer, not the question.

Can you tell me what the first line of that answer was ? Was it something
like

[quote]
The filter function, called before initscr, tells curses to use a single
line (rather than the whole screen).
[/quote]

?

Yeah, no. I have been quite clear I can't use cooked input, and it still
messes with the screen.

Luckily Pavel was a bit more forthcoming than you, and made it clear that
there was a bit of a trick involved. Which ofcourse was not mentioned
there.

But if it actually does grab a screenline (and displays any output and/or
restores that screenline after exiting the call) while allowing me to grab
keystrokes (does the callback have a "ignore this keystroke" return value ?
I have not looked yet) than I again can't use it.

Bottom line : Yes, I ready that answer. To me it looks that you didn't.
Or perhaps just ignored the "side effects" of that method, because they do
not matter to you.

If I'm wrong and that method actually doesn't mess with the screen *at all*
than you're welcome to point out how thats been done.

Regards,
Rudy Wieser

Re: Parsing multi-byte keystrokes

<u7u2nb$3lmer$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=585&group=comp.lang.c%2B%2B#585

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Mon, 3 Jul 2023 10:12:54 +0200
Organization: A noiseless patient Spider
Lines: 77
Message-ID: <u7u2nb$3lmer$2@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com><1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me><u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me><8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me><877crksmps.fsf@nosuchdomain.example.com><u7op6k$2shgi$4@dont-email.me><87zg4fqx07.fsf@nosuchdomain.example.com><u7rehv$3996f$2@dont-email.me> <877crix7ip.fsf@nosuchdomain.example.com>
Injection-Date: Mon, 3 Jul 2023 09:00:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="705a36d2aa933d0cd20d717b767c50f2";
logging-data="3856859"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fF1q3ClrFyNkKiY8QbfS22AIGIQ9qvah0AbEiw7ArYA=="
Cancel-Lock: sha1:ibFG5nMKV/4uOM0ANtMqH8F9SXY=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MSMail-Priority: Normal
X-Priority: 3
 by: R.Wieser - Mon, 3 Jul 2023 08:12 UTC

Keith,

>> Ah yes, about that : Are you aware that Linux != Unix ?
....
> Yes, I'm aware.

Than why did you try to push me to that newsgroup. It makes zero sense.

> At least the first part of your original question was
> not specific to Linux.

You mean the part above the "second question" ? If so, what *didn't* you
understand about

[quote=me, initial message]
I was wondering if this perhaps is already part of Linux ...
[/quote]

?

Also, thruout the thread there are multiple mentionings of Linux specific
usage, some of which I acknowledged to having found them myself. If
nothing than that should have given you a clue to what OS I was working on.

You complain abut me not reading everything and thus missing stuff ? I
suggest you take a long, hard look in the mirror.

> You mentioned the "console", apparently referring to the Linux virtual
> console

I have no idea, as my "/please/ tell me the difference between them"
requests have never been answered. Which, by the way, feels to me like
nobody here actually knows the distinction themselves.

.... and you have now introduced yet another phrase to that list, bringing it
up to ... six?

But looking at the "virtual" part of it, isn't that not something that can
only be true when you use a GUI ? In that case I think you might also have
missed my mentioning (in my second post) of "my "bullseye lite"
installation".

.... Which also should have been a clue-by-four that I was indeed using
Linux.

> I'm not the only person who has suggested that comp.unix.programmer
> would be a better place for your question.

True. You're one of exactly two who said that. And that makes it better
.... how exactly ? How many people are there in this newsgroup ?

Besides ofcourse that you tried to dump me into a non-Linux newsgroup. :-(

> Apparently you'd rather stay here and argue with people who are
> trying to help you.

The people who wanted to help me already did. You and james are just
keeping on claiming I should not be here. Other than some "because I say
so" I have not gotten any clarification of that.

> I was suggesting that you read Thomas Dickey's *answer*.

I refer you to my reply to 'Christian', just before my reply to you.

> Don't expect any more help from me.

Like you trying to set me up to fail by suggesting I (re)post in a Unix
related group ? Yeah, I surely could do without such shennigans.

But, thank you for your (initial) attempts to come up with something
workable. Alas, as I've mentioned, something with a "side" effect of
touching the screen is unusable to me.

Regards,
Rudy Wieser

Re: Parsing multi-byte keystrokes

<u7u2nb$3lmer$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=586&group=comp.lang.c%2B%2B#586

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: Parsing multi-byte keystrokes
Date: Mon, 3 Jul 2023 10:59:59 +0200
Organization: A noiseless patient Spider
Lines: 88
Message-ID: <u7u2nb$3lmer$3@dont-email.me>
References: <u79ug0$i1ks$1@dont-email.me> <u7iiiq$1j6d8$1@news.xmission.com> <1t4nM.1647$fNr5.933@fx16.iad> <u7js2g$25ate$3@dont-email.me> <u7k8sc$1k9jg$1@news.xmission.com> <u7kc0s$26v5q$1@dont-email.me> <8735293xdb.fsf@bsb.me.uk> <u7muuc$2j6av$2@dont-email.me> <u7nfp3$2kvh5$1@dont-email.me> <u7op6k$2shgi$3@dont-email.me> <u7rb24$38rc1$1@dont-email.me> <u7rfu8$39da1$1@dont-email.me> <u7sh00$3cj3a$1@dont-email.me> <u7snst$3dlou$1@dont-email.me> <u7svbh$3eg6v$1@dont-email.me>
Injection-Date: Mon, 3 Jul 2023 09:00:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="705a36d2aa933d0cd20d717b767c50f2";
logging-data="3856859"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FRfXlHXT7BB/+NhCfkAjQu/hjR8v4Kiu2Pq6e626Hhw=="
Cancel-Lock: sha1:gZUhjoNgk1Hmsc9VBn9DUj2EtA0=
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Mon, 3 Jul 2023 08:59 UTC

James,

> "comp.os.linux.answers" appears to be a fairly active linux oriented
> group

Thank you for that suggestion. Alas, ethernal september (my newsgroup host)
doesn't seem to carry it. :-\

> I would still suggest that <https://www.linux.org/forums/>

Thank you again for that suggestion. Alas, I'm quite reluctant to sign up
to anything just to get a single answer.

Also, when I try to have a peek at what they are offering I 1) get an
"insecure connection". When I than bypass the certificate problem I 2) end
up on a cloudflare server which returns a "403 Forbidden". It also
doesn't help that 3) it demands JS to be enabled, which I keep disabled.

> As I indicated, I have been using almost exclusively Linux for 30 years
> now. I also don't know how to solve your problem to your satisfaction.

*Thank you* for saying that. It means that I can stop trying to search
for it (and just use whatever I already came up with myself).

>> Actually, someone has already proven you wrong in that regard.
>
> Oh - who? The only response you've received that you haven't denigrated
> yet was the one suggesting that you use readline(),

I rejected it the first time, as I have no use for cooked input. It was
Pavel who clarified it and showed that I could possibly use its callback to
get what I wanted.

.... though a more recent post seems to indicate that that call still grabs
part of the the screen, which again/still makes it (way) less usable to me.

As for "denigrated" ? Think (read) again. I'm not known for just saying
"no" to something, I tend to describe why there is a mismatch between the
offered solution and what I am after. If you can't handle a "thats not
quite it and {this} is the reason why" than thats your problem, not mine.

> I very clearly distinguished Unix and Linux in the part of my message
> that you chose to snip - how could you derive from that the conclusion
> that I was confusing them?

By trying to push my Linux related question into a Unix related newsgroup.
Are you daft or something ? Or just suffering from dementia ?

> No, I think you'll get answers of varying quality,

Which is another "water is wet" kind of thing. Skipped.

> That's less likely to be the case in a newsgroup devoted to Linux.

I recently asked a RPi platform-specific hardware and Linux OS specific
question in an RPi specific newsgroup. For some reason people there where,
for whatever reason, coming up with all kinds of Non-RPi references. You
where saying ?

IOW, that pendulum swings both ways.

But granted, there is a distinct possibility, and I'm open to suggestions.
Just not bogus ones. :-(

>> In the same vein I can, with absolute certainty, tell you that the
>> maximum
>> level of linux expertise here is 100%.
>
> That seems incredibly unlikely to me. I've seen the levels of Linux
> expertise displayed both here and in comp.UNIX.programmer

:-) Thats the problem with grabbing the correct interpretation of what
you're reading. As I tried to explain as reponse to your "less than a 100%"
and "minimum is 0" blurbs.

Knowledge-wise you /cannot/ go under zero, just as your "significantly less
than 100%" /cannot/ be anything than being less than that 100% (besides what
"significantly" might actually be).

IOW, just like your "minimum is 0" blurb, the maximum is 100%. And water is
wet. But while the minimum might actually be reached by just having a
single nincompoop in the group, I grant you that the opposite will be much
harder to reach - even for just a single person.

Regards,
Rudy Wieser.


devel / comp.lang.c++ / Re: Parsing multi-byte keystrokes

Pages:123456
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor