bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expected behavior of large CSI ICH


From: Bryan Christ
Subject: Re: Expected behavior of large CSI ICH
Date: Fri, 14 Dec 2018 18:55:19 -0600

The application is called 'cacaxine'.  It doesn't appear to even be well handled by the linux terminal.

On Fri, Dec 14, 2018 at 6:03 PM Thomas Dickey <address@hidden> wrote:
On Fri, Dec 14, 2018 at 02:38:37PM -0600, Bryan Christ wrote:
> So now I'm actually wondering why some program would emit ESC 4000 @ when
> the terminal it's running on is only 200 columns wide.  That seems like a
> bizarre thing to do.

well, there's always bugs :-)

If it's a curses application, ncurses only uses parm_ich from a couple
of places.  One puts the cursor at the lower-right of the screen,
while the other is more general, but the repeat-count is based on the
length of the line.

If it's not a curses application (e.g., some shell script), there's
a lot of possibilities.

> On Fri, Dec 14, 2018 at 12:31 PM Nicholas Marriott <
> address@hidden> wrote:
>
> > No... it seems like you could test this yourself easily enough:
> >
> >   printf '\033#8\033[4000@'; sleep 100
> >
> > Compare with a smaller value such as address@hidden
> >
> > It only affects one line.
> >
> >
> > On Fri, Dec 14, 2018 at 10:14:40AM -0600, Bryan Christ wrote:
> > >    Okay.A  I see that now.A  My question is still about the same.A  When
> > >    inserting 4000 blanks, on a 200 column row, is the expected behavior to
> > >    "push" down the rows below it?A  In this example that would be about 20 or
> > >    21 rows below affected.A  Is that correct?
> > >    On Fri, Dec 14, 2018 at 3:36 AM Thomas Dickey <address@hidden> wrote:
> > >
> > >      On Thu, Dec 13, 2018 at 11:58:35AM -0600, Bryan Christ wrote:
> > >      > Assuming a terminal is 200 x 50 and ncurses emits something like:
> > >      >
> > >      > ESC 4000 @
> > >      >
> > >      > ..which is regarded as "shift left by 4000" on xterm, what is the
> > >      expected
> > >
> > >      actually, that's "insert character".A  A left-shift would be something
> > >      different.A  The insert-character (ich) feature affects a single line.
> > >
> > >      > behavior of the terminal?A  Specifically, since this would be an
> > >      operation
> > >      > potentially affecting multiple rows, is it essential a "block
> > move"?

--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net


--
Bryan
<><

reply via email to

[Prev in Thread] Current Thread [Next in Thread]