Page 1 of 1

Scrollbar fix to the ServerGui.

Posted: October 8th, 2012, 2:31 am
by OfficerFlake
The most annoying thing in the world to me at the moment is when I'm trying to read the console output and new messages keep bumping the window contents about.

Could it be possible to have it not jump down as new messages are typed when the scroll bar is not at the bottom of the screen already?

Cheers :)

Re: Scrollbar fix to the ServerGui.

Posted: October 9th, 2012, 1:26 am
by fragmer
It'd be a big improvement, but also surprisingly hard to pull off.

Console was designed with single-threaded applications in mind (so program is either reading or writing text, not both at the same time). To change the way it works, I have to re-create a big chunk of existing functionality. That means checking every key press individually, assembling characters one by one into strings, scrolling a message that's too long off-screen, handling delete/backspace manually, tracking the cursor and moving it with arrow keys manually, handling paste, handling window resizing, etc.

I did try to implement all this once, but it ended up being very wonky, and had its own share of annoyances. Maybe there's a better way, but I don't currently know of one.

Further reading