summaryrefslogtreecommitdiff
path: root/src/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tty.c b/src/tty.c
index ed951b3..7271307 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -110,6 +110,10 @@ void tty_setinvert(tty_t *tty) {
tty_sgr(tty, 7);
}
+void tty_setunderline(tty_t *tty) {
+ tty_sgr(tty, 4);
+}
+
void tty_setnormal(tty_t *tty) {
tty_sgr(tty, 0);
tty->fgcolor = 9;