termion issueshttps://gitlab.redox-os.org/redox-os/termion/-/issues2018-06-16T04:18:39Zhttps://gitlab.redox-os.org/redox-os/termion/-/issues/105Terminal flickers on successive screen updates2018-06-16T04:18:39ZMichael Aaron Murphymmstick@pm.meTerminal flickers on successive screen updates*Created by: jmacdonald*
Under two different terminal emulators, with two different termion-based text editors, I'm seeing flickering when updating the screen quickly:
Here's the editor I'm working on, running in Alacritty:
![Amp]...*Created by: jmacdonald*
Under two different terminal emulators, with two different termion-based text editors, I'm seeing flickering when updating the screen quickly:
Here's the editor I'm working on, running in Alacritty:
![Amp](https://d3vv6lp55qjaqc.cloudfront.net/items/2q2c3i2X3W2J0C373s3f/Screen%20Recording%202017-04-30%20at%2008.18%20PM.gif?v=6ec09059)
and here's the Smith text editor, in the default OS X terminal:
![Smith](https://d3vv6lp55qjaqc.cloudfront.net/items/313W3x2o0D421u2i3f1H/Screen%20Recording%202017-04-30%20at%2008.20%20PM.gif?v=5f6b188b)
If I avoid using the `clear::All` escape sequence, and simply overwrite cells with new content, this problem goes away. This flickering isn't present when using termbox; I think they've avoided this by buffering screen output, and having `clear` [reset the buffer contents](https://github.com/nsf/termbox/blob/master/src/termbox.c#L315), rather than delegating to the terminal using an escape sequence. Any plans to implement that, or does it feel too high-level/abstract for Termion?