From 25b04419d4b8b0bb907a0d784f5683570035bc15 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 3 Nov 2001 14:42:28 +0000 Subject: Reset the color before clearing screen. Set the cursor invisible when moving around in screen and set it visible again when it's in wanted position. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1964 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/terminfo-core.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/fe-text/terminfo-core.h') diff --git a/src/fe-text/terminfo-core.h b/src/fe-text/terminfo-core.h index 480ffc07..93afa78b 100644 --- a/src/fe-text/terminfo-core.h +++ b/src/fe-text/terminfo-core.h @@ -5,6 +5,7 @@ #define terminfo_move(x, y) current_term->move(current_term, x, y) #define terminfo_move_relative(oldx, oldy, x, y) current_term->move_relative(current_term, oldx, oldy, x, y) +#define terminfo_set_cursor_visible(set) current_term->set_cursor_visible(current_term, set) #define terminfo_scroll(y1, y2, count) current_term->scroll(current_term, y1, y2, count) #define terminfo_clear() current_term->clear(current_term) #define terminfo_clrtoeol() current_term->clrtoeol(current_term) @@ -24,6 +25,7 @@ struct _TERM_REC { /* Functions */ void (*move)(TERM_REC *term, int x, int y); void (*move_relative)(TERM_REC *term, int oldx, int oldy, int x, int y); + void (*set_cursor_visible)(TERM_REC *term, int set); void (*scroll)(TERM_REC *term, int y1, int y2, int count); void (*clear)(TERM_REC *term); @@ -51,6 +53,7 @@ struct _TERM_REC { /* Cursor movement */ const char *TI_smcup, *TI_rmcup, *TI_cup; const char *TI_hpa, *TI_vpa, *TI_cub1, *TI_cuf1; + const char *TI_civis, *TI_cnorm; /* Scrolling */ const char *TI_csr, *TI_wind; -- cgit v1.2.3