terminfo's term_clrtoeol() uses the clrtoeol() command only when using the default colors. otherwise it just goes and fills the line with spaces.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1941 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-29 19:13:52 +00:00 committed by cras
commit 3cdedf5b4b
3 changed files with 42 additions and 4 deletions

View file

@ -269,6 +269,21 @@ static void _clrtoeol(TERM_REC *term)
tput(tparm(term->TI_el));
}
/* Repeat character (rep / rp) */
static void _repeat(TERM_REC *term, int chr, int count)
{
tput(tparm(term->TI_rep, chr, count));
}
/* Repeat character (manual) */
static void _repeat_manual(TERM_REC *term, int chr, int count)
{
while (count > 0) {
putc(chr, term->out);
count--;
}
}
/* Reset all terminal attributes */
static void _set_normal(TERM_REC *term)
{
@ -554,6 +569,12 @@ static int term_setup(TERM_REC *term)
return 0;
}
/* Repeating character */
if (term->TI_rep)
term->repeat = _repeat;
else
term->repeat = _repeat_manual;
/* Bold, underline, standout */
term->set_bold = term->TI_bold ? _set_bold : _ignore;
term->set_uline = term->TI_smul && term->TI_rmul ?