1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00

some optimizations to not uselessly hide/show/move cursor - hope i didn't

break anything :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2781 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-05-12 14:48:11 +00:00 committed by cras
parent 22e9fa49dc
commit 3ac451c608

View File

@ -372,13 +372,16 @@ static void term_printed_text(int count)
However, next term_move() really shouldn't try to cache
the move, otherwise terminals would try to combine the
last word in upper line with first word in lower line. */
cforcemove = TRUE;
vcx += count;
while (vcx >= term_width) {
vcx -= term_width;
if (vcy < term_height-1) vcy++;
if (vcx > 0) term_lines_empty[vcy] = FALSE;
}
crealx += count;
if (crealx >= term_width)
cforcemove = TRUE;
}
void term_addch(TERM_WINDOW *window, int chr)
@ -488,6 +491,7 @@ void term_refresh(TERM_WINDOW *window)
terminfo_set_cursor_visible(TRUE);
curs_visible = TRUE;
}
term_set_color(window, ATTR_RESET);
fflush(window != NULL ? window->term->out : current_term->out);
}
@ -495,11 +499,6 @@ void term_refresh(TERM_WINDOW *window)
void term_refresh_freeze(void)
{
freeze_counter++;
if (!term_detached && curs_visible) {
terminfo_set_cursor_visible(FALSE);
curs_visible = FALSE;
}
}
void term_refresh_thaw(void)