#46 Fix flashing terminal as best as possible

닫힘
nuclearkev1 년 전을 오픈 · 3개의 코멘트

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.
Kevin "The Nuclear" Bloom 코멘트됨, 1 년 전
소유자

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.
Kevin "The Nuclear" Bloom 코멘트됨, 1 년 전
소유자

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.
Kevin "The Nuclear" Bloom 코멘트됨, 1 년 전
소유자

Fixed with the merge of origin/line-calculation in commit 80d25cdf5e

Fixed with the merge of origin/line-calculation in commit 80d25cdf5e14a1f2a717d3de1c52ae5be4f486a8
로그인하여 이 대화에 참여
로딩중...
취소
저장
아직 콘텐츠가 없습니다.