mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
Add function to set blink to the terminfo backend.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4685 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ac006c3442
commit
fab544bdbe
@ -308,6 +308,11 @@ static void _set_normal(TERM_REC *term)
|
|||||||
tput(tparm(term->TI_normal));
|
tput(tparm(term->TI_normal));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void _set_blink(TERM_REC *term)
|
||||||
|
{
|
||||||
|
tput(tparm(term->TI_blink));
|
||||||
|
}
|
||||||
|
|
||||||
/* Bold on */
|
/* Bold on */
|
||||||
static void _set_bold(TERM_REC *term)
|
static void _set_bold(TERM_REC *term)
|
||||||
{
|
{
|
||||||
@ -589,6 +594,7 @@ static int term_setup(TERM_REC *term)
|
|||||||
term->repeat = _repeat_manual;
|
term->repeat = _repeat_manual;
|
||||||
|
|
||||||
/* Bold, underline, standout */
|
/* Bold, underline, standout */
|
||||||
|
term->set_blink = term->TI_blink ? _set_blink : _ignore;
|
||||||
term->set_bold = term->TI_bold ? _set_bold : _ignore;
|
term->set_bold = term->TI_bold ? _set_bold : _ignore;
|
||||||
term->set_uline = term->TI_smul && term->TI_rmul ?
|
term->set_uline = term->TI_smul && term->TI_rmul ?
|
||||||
_set_uline : _ignore_parm;
|
_set_uline : _ignore_parm;
|
||||||
|
@ -35,6 +35,7 @@ struct _TERM_REC {
|
|||||||
void (*set_fg)(TERM_REC *term, int color);
|
void (*set_fg)(TERM_REC *term, int color);
|
||||||
void (*set_bg)(TERM_REC *term, int color);
|
void (*set_bg)(TERM_REC *term, int color);
|
||||||
void (*set_normal)(TERM_REC *term);
|
void (*set_normal)(TERM_REC *term);
|
||||||
|
void (*set_blink)(TERM_REC *term);
|
||||||
void (*set_bold)(TERM_REC *term);
|
void (*set_bold)(TERM_REC *term);
|
||||||
void (*set_uline)(TERM_REC *term, int set);
|
void (*set_uline)(TERM_REC *term, int set);
|
||||||
void (*set_standout)(TERM_REC *term, int set);
|
void (*set_standout)(TERM_REC *term, int set);
|
||||||
|
Loading…
Reference in New Issue
Block a user