| Message |
At present there is no line flicker if you omit a line that has just arrived, as redrawing the window is deferred to the main event loop as a low priority.
If you waited for a while and then tried to delete a batch of lines, yes there might be a flicker.
What might work for you instead is to do it a different way:
- Omit your map or whatever it is from output as you go, in the usual way.
- As each line arrives, in addition to your normal processing add the style runs into a Lua table. That is, on the first line (the start of the map), clear the table out, and then add that first line.
- For subsequent lines, just do table.insert of the whole style run table.
- Once the final line has arrived, check some flag you set in the alias to see whether you want to show the map.
- If wanted, just run through the saved table, displaying each style run with a ColourTell / ColourNote.
That way, the map can be optionally shown, the extra work is minimal, and you don't need to toggle on or off the omit-from-output flags for lots of triggers. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|