Scrollbar fix to the ServerGui.

Post all ideas and suggestions for fCraft here
Post Reply
User avatar
OfficerFlake
Offline
Posts: 25
Joined: May 28th, 2012, 12:03 am

Scrollbar fix to the ServerGui.

Post 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 :)
=== MeinKraft 24/7 ===
Server Owner & Code Developer

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Scrollbar fix to the ServerGui.

Post 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

Post Reply