scandum / tintin

TinTin++, aka tt++, is an extensible console MUD client.
https://tintin.mudhalla.net
GNU General Public License v3.0
201 stars 56 forks source link

fix: cursor postion in trigger #114

Closed dzpao closed 2 years ago

dzpao commented 2 years ago

When the code in the trigger executes some code that may affect the cursor position (e.g. a simple #split).

The easiest way to get around this is to use #delay 0 #split, but I think the root cause of it is due to the fact that the print mud output doesn't ensure that it must be print in the scroll region.

For code readability reasons, I added a function to do this.

This should close #113

scandum commented 2 years ago

Fixing it like that can result in screen flicker when a lot of data is received. I updated the beta with another fix that checks for FLAG_READMUD in split.c.