On some terminals and consoles (tty) you don't see any flashing. Others flash so much that it's extremely difficult to use ait. This, from my understanding, has to do with the rendering from the display.c. My first idea for solving this is to not clear the entire screen but only the effected areas. No idea how I'll do that yet.
On some terminals and consoles (tty) you don't see any flashing. Others flash so much that it's extremely difficult to use ait. This, from my understanding, has to do with the rendering from the `display.c`. My first idea for solving this is to not clear the entire screen but only the effected areas. No idea how I'll do that yet.
I'm thinking that I need to make a custom version of tb_clear() that clears only the necessary areas. For example, if you make an edit in window 1, there is no need to update window 2. Also, if you make an edit on line 54, you probably don't need to re-render line 53 unless there is a syntax update.
I'm thinking that I need to make a custom version of `tb_clear()` that clears only the necessary areas. For example, if you make an edit in window 1, there is no need to update window 2. Also, if you make an edit on line 54, you probably don't need to re-render line 53 unless there is a syntax update.
Working off that last idea, the update_display function could look for a special flag to be set:
syntax update when anything that would trigger a syntax highlight update is input
multi-line update anything with a new line is input or if the input takes the current line to a new termbox row
Naturally, on scrolling or changing page I'll have to do a total clear. Otherwise, just clear the current line.
Working off that last idea, the `update_display` function could look for a special flag to be set:
- syntax update when anything that would trigger a syntax highlight update is input
- multi-line update anything with a new line is input or if the input takes the current line to a new termbox row
Naturally, on scrolling or changing page I'll have to do a total clear. Otherwise, just clear the current line.
On some terminals and consoles (tty) you don't see any flashing. Others flash so much that it's extremely difficult to use ait. This, from my understanding, has to do with the rendering from the
display.c
. My first idea for solving this is to not clear the entire screen but only the effected areas. No idea how I'll do that yet.I'm thinking that I need to make a custom version of
tb_clear()
that clears only the necessary areas. For example, if you make an edit in window 1, there is no need to update window 2. Also, if you make an edit on line 54, you probably don't need to re-render line 53 unless there is a syntax update.Working off that last idea, the
update_display
function could look for a special flag to be set:Naturally, on scrolling or changing page I'll have to do a total clear. Otherwise, just clear the current line.
Fixed with the merge of origin/line-calculation in commit
80d25cdf5e