summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-03-30 20:07:09 -0400
committerJune McEnroe <june@causal.agency>2020-03-30 20:07:09 -0400
commit1e9bc9e68fc2bb498e7318ad585410ddc9e361d9 (patch)
treef0cf8d04daba1b049ab214baf1f9745587513ef9
parentHighlight diff lines without lading space as Keyword (diff)
downloadsrc-1e9bc9e68fc2bb498e7318ad585410ddc9e361d9.tar.gz
src-1e9bc9e68fc2bb498e7318ad585410ddc9e361d9.zip
Teach hi how to underline in IRC
Diffstat (limited to '')
-rw-r--r--bin/hi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/hi.c b/bin/hi.c
index 488961bf..b59a88e9 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -444,11 +444,14 @@ enum IRC {
 	IRCBold = 0x02,
 	IRCColor = 0x03,
 	IRCMonospace = 0x11,
+	IRCUnderline = 0x1F,
 };
 
 static const enum IRC SGRIRC[] = {
 	[SGRBoldOn]  = IRCBold,
 	[SGRBoldOff] = IRCBold,
+	[SGRUnderlineOn]  = IRCUnderline,
+	[SGRUnderlineOff] = IRCUnderline,
 	[SGRBlack]   = IRCBlack,
 	[SGRRed]     = IRCRed,
 	[SGRGreen]   = IRCGreen,