summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fe-text/terminfo-core.c6
-rw-r--r--src/fe-text/terminfo-core.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/fe-text/terminfo-core.c b/src/fe-text/terminfo-core.c
index 3d18b79b..2d9db404 100644
--- a/src/fe-text/terminfo-core.c
+++ b/src/fe-text/terminfo-core.c
@@ -308,6 +308,11 @@ static void _set_normal(TERM_REC *term)
tput(tparm(term->TI_normal));
}
+static void _set_blink(TERM_REC *term)
+{
+ tput(tparm(term->TI_blink));
+}
+
/* Bold on */
static void _set_bold(TERM_REC *term)
{
@@ -589,6 +594,7 @@ static int term_setup(TERM_REC *term)
term->repeat = _repeat_manual;
/* Bold, underline, standout */
+ term->set_blink = term->TI_blink ? _set_blink : _ignore;
term->set_bold = term->TI_bold ? _set_bold : _ignore;
term->set_uline = term->TI_smul && term->TI_rmul ?
_set_uline : _ignore_parm;
diff --git a/src/fe-text/terminfo-core.h b/src/fe-text/terminfo-core.h
index 66764feb..9af1efda 100644
--- a/src/fe-text/terminfo-core.h
+++ b/src/fe-text/terminfo-core.h
@@ -35,6 +35,7 @@ struct _TERM_REC {
void (*set_fg)(TERM_REC *term, int color);
void (*set_bg)(TERM_REC *term, int color);
void (*set_normal)(TERM_REC *term);
+ void (*set_blink)(TERM_REC *term);
void (*set_bold)(TERM_REC *term);
void (*set_uline)(TERM_REC *term, int set);
void (*set_standout)(TERM_REC *term, int set);