How to allow further scrolling back in chat window?
Posted:
10 Aug 2011, 05:43
by Lao
In an older version of Winboard that I was using, I could always scroll back all the way to the point I logged in in the chat window. With the latest version, it only scrolls back so far. How do I allow scrolling all the way back? Thanks.
Lao
Re: How to allow further scrolling back in chat window?
Posted:
10 Aug 2011, 06:45
by H.G.Muller
Nothing has changed in this area, recently. I just checked out in the source code how WinBoard handles this, and the algorithm is that whenever the text in the console after addition of new output exceeds 100,000 characters, the oldest 100 characters (or the length of the new output, when this is longer) are thrown away. This guarantees the most recent 99,900 characters will always be present.
It was already like that in WinBoard 4.0.2 (the oldest version I had around).
The limits are hard-coded, (CO_MAX and CO_TRIM in winboard.c), but you could increase CO_MAX and recompile. I am not sure what was the reason for imposing these limits; I suppose that if thetextgetsto big, Windows might refuse its display completely,and the console would stay empty. (Or perhaps WinBoard would crash.) I have no idea whatthe actual limit is, though, and if ithas changed with the evolution of Windows.