mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
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:
parent
2500457729
commit
3cdedf5b4b
3 changed files with 42 additions and 4 deletions
|
|
@ -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 ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue