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

Re: TerminalView issue ensuring visible after output


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.

--
Benoît Minisini.


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