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

Re: TerminalView issue ensuring visible after output


On Wed, 29 May 2024 at 10:56, Benoît Minisini <
benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

> Le 29/05/2024 à 11:07, Benoît Minisini a écrit :
> > Le 29/05/2024 à 11:05, Benoît Minisini a écrit :
> >>> It's the order of this code..
> >>>
> >>> If (($iTargetY + $hView.H) \ $LH) >= $hScreen.Count Then
> >>> bEnsureVisible = True
> >>> Endif
> >>>
> >>> $hFilter.OutputTo(Me, $hScreen, hOutput, sBuffer)
> >>>
> >>> If bEnsureVisible Then
> >>> $bIgnoreNextAnimation = True
> >>> _EnsureScreen()
> >>> Endif
> >>>
> >>>
> >>> Should not the $hFilter.OutputTo call happen before the calculation
> >>> involving $hScreen.Count ?
> >>
> >> Mmm... Maybe, I will test that.
> >>
> >
> > The idea was that automatic scrolling occurs only if the last line was
> > already visible on the screen. Otherwise no scrolling occurs.
> >
>
> You can try the last commit, to see if it fixes the problem. I'm far
> from being sure!
>
> --
> Benoît Minisini.
>

Thank you Ben , I will let you know if i see any issues.  i tested on du
just now and all seemed okay.

Respects
BruceS

References:
TerminalView issue ensuring visible after outputBruce Steers <bsteers4@xxxxxxxxx>
Re: TerminalView issue ensuring visible after outputBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: TerminalView issue ensuring visible after outputBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: TerminalView issue ensuring visible after outputBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>