The ncurses library apparently (ie, it happens but I'm just assuming
it's done by it) switches a terminal into so-called "application mode"
and back, with the effect of programs using it expecting the arrow keys
to generate escape sequences starting with ESC O instead of ESC ]. This single character exchange seems a most useless exercise to me (and I've
just written code to handle it ... grrr).
Does anybody have some insight re: what that's supposed to be good for?
On 10/11/2021 09:30, Rainer Weikusat wrote:
The ncurses library apparently (ie, it happens but I'm just assumingHave a look at the terminfo/termcap definitions for your device, that's
it's done by it) switches a terminal into so-called "application mode"
and back, with the effect of programs using it expecting the arrow keys
to generate escape sequences starting with ESC O instead of ESC ]. This
single character exchange seems a most useless exercise to me (and I've
just written code to handle it ... grrr).
Does anybody have some insight re: what that's supposed to be good for?
where it will be.
In article <sv7s5i-40n.ln1@paranoia.mcleod-schmidt.id.au>,
Gary R. Schmidt <grschmidt@acm.org> wrote:
On 10/11/2021 09:30, Rainer Weikusat wrote:
The ncurses library apparently (ie, it happens but I'm just assumingHave a look at the terminfo/termcap definitions for your device, that's
it's done by it) switches a terminal into so-called "application mode"
and back, with the effect of programs using it expecting the arrow keys
to generate escape sequences starting with ESC O instead of ESC ]. This
single character exchange seems a most useless exercise to me (and I've
just written code to handle it ... grrr).
Does anybody have some insight re: what that's supposed to be good for?
where it will be.
I don't think you two are speaking the same language. I.e., you are not answering the question he is asking.
I.e., he is asking a "Why?" question, you are answering a "Help me. My program doesn't work!" question.
Note: Usenet (and all other online help forums) don't do well with "Why?" type questions.
The ncurses library apparently (ie, it happens but I'm just assuming
it's done by it) switches a terminal into so-called "application mode"
and back, with the effect of programs using it expecting the arrow keys
to generate escape sequences starting with ESC O instead of ESC ]. This single character exchange seems a most useless exercise to me (and I've
just written code to handle it ... grrr).
Does anybody have some insight re: what that's supposed to be good for?
Rainer Weikusat <rweikusat@talktalk.net> writes:
The ncurses library apparently (ie, it happens but I'm just assuming
it's done by it) switches a terminal into so-called "application mode"
and back, with the effect of programs using it expecting the arrow keys
to generate escape sequences starting with ESC O instead of ESC ]. This
single character exchange seems a most useless exercise to me (and I've
just written code to handle it ... grrr).
Does anybody have some insight re: what that's supposed to be good for?
https://invisible-island.net/ncurses/ncurses.faq.html and search down
for ‘Keyboard Problems’.
On 10/11/2021 21:36, Kenny McCormack wrote:
In article <sv7s5i-40n.ln1@paranoia.mcleod-schmidt.id.au>,You may be right - I think he doesn't understand how curses/ncurses
Gary R. Schmidt <grschmidt@acm.org> wrote:
On 10/11/2021 09:30, Rainer Weikusat wrote:
The ncurses library apparently (ie, it happens but I'm just assumingHave a look at the terminfo/termcap definitions for your device, that's
it's done by it) switches a terminal into so-called "application mode" >>>> and back, with the effect of programs using it expecting the arrow keys >>>> to generate escape sequences starting with ESC O instead of ESC ]. This >>>> single character exchange seems a most useless exercise to me (and I've >>>> just written code to handle it ... grrr).
Does anybody have some insight re: what that's supposed to be good for? >>>>
where it will be.
I don't think you two are speaking the same language. I.e., you are not
answering the question he is asking.
I.e., he is asking a "Why?" question, you are answering a "Help me. My
program doesn't work!" question.
Note: Usenet (and all other online help forums) don't do well with "Why?"
type questions.
works, and thinks that the library is emitting something that is not
read from the termcap/terminfo description of his device.
On Wed, 10 Nov 2021 15:28:22 +0000
Rainer Weikusat <rweikusat@talktalk.net> wrote:
Richard Kettlewell <invalid@invalid.invalid> writes:
Rainer Weikusat <rweikusat@talktalk.net> writes:
The ncurses library apparently (ie, it happens but I'm just assuminghttps://invisible-island.net/ncurses/ncurses.faq.html and search down
it's done by it) switches a terminal into so-called "application mode" >>>> and back, with the effect of programs using it expecting the arrow keys >>>> to generate escape sequences starting with ESC O instead of ESC ]. This >>>> single character exchange seems a most useless exercise to me (and I've >>>> just written code to handle it ... grrr).
Does anybody have some insight re: what that's supposed to be good for? >>>
for ‘Keyboard Problems’.
Short version: Workaround for crappy, long obsolete hardware text >>terminals. That much I guessed. :-)
When 99.9% of terminals now are ansi why bother using curses? Skip the middle man and write the ansi codes direct , its much faster.
Richard Kettlewell <invalid@invalid.invalid> writes:
Rainer Weikusat <rweikusat@talktalk.net> writes:
The ncurses library apparently (ie, it happens but I'm just assuming
it's done by it) switches a terminal into so-called "application mode"
and back, with the effect of programs using it expecting the arrow keys
to generate escape sequences starting with ESC O instead of ESC ]. This
single character exchange seems a most useless exercise to me (and I've
just written code to handle it ... grrr).
Does anybody have some insight re: what that's supposed to be good for?
https://invisible-island.net/ncurses/ncurses.faq.html and search down
for ‘Keyboard Problems’.
Short version: Workaround for crappy, long obsolete hardware text
terminals. That much I guessed. :-)
When 99.9% of terminals now are ansi why bother using curses? Skip the middle
"Gary R. Schmidt" <grschmidt@acm.org> writes:
On 10/11/2021 21:36, Kenny McCormack wrote:
In article <sv7s5i-40n.ln1@paranoia.mcleod-schmidt.id.au>,You may be right - I think he doesn't understand how curses/ncurses
Gary R. Schmidt <grschmidt@acm.org> wrote:
On 10/11/2021 09:30, Rainer Weikusat wrote:
The ncurses library apparently (ie, it happens but I'm just assuming >>>>> it's done by it) switches a terminal into so-called "application mode" >>>>> and back, with the effect of programs using it expecting the arrow keys >>>>> to generate escape sequences starting with ESC O instead of ESC ]. This >>>>> single character exchange seems a most useless exercise to me (and I've >>>>> just written code to handle it ... grrr).Have a look at the terminfo/termcap definitions for your device, that's >>>> where it will be.
Does anybody have some insight re: what that's supposed to be good for? >>>>>
I don't think you two are speaking the same language. I.e., you are not >>> answering the question he is asking.
I.e., he is asking a "Why?" question, you are answering a "Help me. My
program doesn't work!" question.
Note: Usenet (and all other online help forums) don't do well with "Why?" >>> type questions.
works, and thinks that the library is emitting something that is not
read from the termcap/terminfo description of his device.
You think entirely wrongly. Ncurses switches a terminal into something
called "application mode" (using the escape sequencs ^]]1h) which has
the effect of changing the escape sequence sent for an arrow up key from
^]]A to ^]OA (same scheme for the other arrow keys), the point of which escapes me. I'm assuming that's some compatibility feature for something ancient (and presumably, long extinct) and was asking if someone knew
what this was (or is) supposed to be good for because I'm curiou about
it.
DozingDog@thekennel.co writes:
On Wed, 10 Nov 2021 15:28:22 +0000
Rainer Weikusat <rweikusat@talktalk.net> wrote:
Richard Kettlewell <invalid@invalid.invalid> writes:
Rainer Weikusat <rweikusat@talktalk.net> writes:
The ncurses library apparently (ie, it happens but I'm just assuming >>>>> it's done by it) switches a terminal into so-called "application mode" >>>>> and back, with the effect of programs using it expecting the arrow keys >>>>> to generate escape sequences starting with ESC O instead of ESC ]. This >>>>> single character exchange seems a most useless exercise to me (and I've >>>>> just written code to handle it ... grrr).https://invisible-island.net/ncurses/ncurses.faq.html and search down
Does anybody have some insight re: what that's supposed to be good for? >>>>
for ‘Keyboard Problems’.
Short version: Workaround for crappy, long obsolete hardware text >>>terminals. That much I guessed. :-)
When 99.9% of terminals now are ansi why bother using curses? Skip the middle
man and write the ansi codes direct , its much faster.
Could you please refrain from attaching your unrelated opinion
statements to texts I wrote? The given situation is such that I have to
Semirandom reply to your statement: Considering that computers are
thousands of times (presumably too little) faster today than they used
to be in 1985 or even in the 1990s, why bother with hard-coding a
certain set of escape sequences "because that's faster"? Talk about
solving a non-problem ...
In article <smguoj$1q7s$1@gioia.aioe.org>, <DozingDog@thekennel.co> wrote: >....
When 99.9% of terminals now are ansi why bother using curses? Skip the middle
Do You have a cite (URL) for that statistic?
I think I've heard that is was only 99.3%, but maybe things have changed >recently?
On Wed, 10 Nov 2021 17:48:08 -0000 (UTC)
gazelle@shell.xmission.com (Kenny McCormack) wrote:
In article <smguoj$1q7s$1@gioia.aioe.org>, <DozingDog@thekennel.co> wrote: >>....
When 99.9% of terminals now are ansi why bother using curses? Skip
the middle
Do You have a cite (URL) for that statistic?
I think I've heard that is was only 99.3%, but maybe things have changed >>recently?
Given almost nobody uses real terminals anymore (and even then most of them >are ansi or at least vt* compatible) I think its a fair assumption. In fact >the number of virtual terminals in use compared to real terminals is probably >way higher than 1/1000 so its probably more like 99.9999%.
In article <smipk3$1inv$1@gioia.aioe.org>, <DozingDog@thekennel.co> wrote: >>On Wed, 10 Nov 2021 17:48:08 -0000 (UTC)
gazelle@shell.xmission.com (Kenny McCormack) wrote:
In article <smguoj$1q7s$1@gioia.aioe.org>, <DozingDog@thekennel.co> wrote: >>>....
When 99.9% of terminals now are ansi why bother using curses? Skip
the middle
Do You have a cite (URL) for that statistic?
I think I've heard that is was only 99.3%, but maybe things have changed >>>recently?
Given almost nobody uses real terminals anymore (and even then most of them >>are ansi or at least vt* compatible) I think its a fair assumption. In fact >>the number of virtual terminals in use compared to real terminals is probably >>way higher than 1/1000 so its probably more like 99.9999%.
Heh heh. Missing the point, much?
On 11/11/21 5:02 AM, DozingDog@thekennel.co wrote:
On Wed, 10 Nov 2021 18:00:53 +0000....
Rainer Weikusat <rweikusat@talktalk.net> wrote:
Could you please refrain from attaching your unrelated opinion
statements to texts I wrote? The given situation is such that I have to
No, I couldn't.
You certainly could. What you mean is "I won't".
On Wed, 10 Nov 2021 18:00:53 +0000...
Rainer Weikusat <rweikusat@talktalk.net> wrote:
Could you please refrain from attaching your unrelated opinion
statements to texts I wrote? The given situation is such that I have to
No, I couldn't.
On Thu, 11 Nov 2021 11:06:07 -0500
James Kuyper <jameskuyper@alumni.caltech.edu> wrote:
On 11/11/21 5:02 AM, DozingDog@thekennel.co wrote:
On Wed, 10 Nov 2021 18:00:53 +0000....
Rainer Weikusat <rweikusat@talktalk.net> wrote:
Could you please refrain from attaching your unrelated opinionNo, I couldn't.
statements to texts I wrote? The given situation is such that I have to >>>
You certainly could. What you mean is "I won't".
Then he should have asked "Will you please refrain".
On 11/11/21 11:10 AM, DozingDog@thekennel.co wrote:
On Thu, 11 Nov 2021 11:06:07 -0500
James Kuyper <jameskuyper@alumni.caltech.edu> wrote:
On 11/11/21 5:02 AM, DozingDog@thekennel.co wrote:
On Wed, 10 Nov 2021 18:00:53 +0000....
Rainer Weikusat <rweikusat@talktalk.net> wrote:
Could you please refrain from attaching your unrelated opinionNo, I couldn't.
statements to texts I wrote? The given situation is such that I have to >>>>
You certainly could. What you mean is "I won't".
Then he should have asked "Will you please refrain".
Not necessarily. He might have had doubts about your physical ability to >restrain yourself. I gave you the benefit of the doubt by assuming that
you do have that ability, and just choose not to exercise it. That's not
much of a benefit - being unwilling to do so is almost as pathetic as
not being able to do so.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 286 |
Nodes: | 16 (2 / 14) |
Uptime: | 84:06:28 |
Calls: | 6,495 |
Calls today: | 6 |
Files: | 12,097 |
Messages: | 5,276,894 |