From 4f1c6c51332d98a8abf804901e74a48a38400026 Mon Sep 17 00:00:00 2001 From: Matthew Mondor Date: Fri, 15 Apr 2022 18:48:31 +0000 Subject: [PATCH] Less aggressive underline --- MATT/TODO.txt | 5 ++++- hacks/analogterm.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/MATT/TODO.txt b/MATT/TODO.txt index 957a6c9..119e673 100644 --- a/MATT/TODO.txt +++ b/MATT/TODO.txt @@ -9,6 +9,9 @@ BUILD TODO ==== +- Alternative keyboard layouts don't work well. + By sending encoded UTF-8 sequences accents work. + Dead keys appear to need special handling. Keysyms include them. - Now that upwards smooth scrolling has been implemented: - May be possible to do the same for downwards - May need to support sending XOFF/XON to control speed, if too fast it @@ -91,7 +94,7 @@ TODO analogterm. - Maybe cleanup code checking boundaries, using max or other similar macros or inline functions. -- When blinking and double-underline, the line doesn't blink. +- When blinking and underline, the line doesn't blink, unlike in xterm. - Italics is currently mapped to inverse, like in rxvt. - There's an apparent bug in utf8wc.c's utf8_split() function. Does not appear to be used by analogterm itself but is included diff --git a/hacks/analogterm.c b/hacks/analogterm.c index a337a34..9a03e39 100644 --- a/hacks/analogterm.c +++ b/hacks/analogterm.c @@ -829,8 +829,9 @@ analogterm_one_frame (analogterm_sim_t *sim) if (lastrow && (m & (TMODE_UNDERLINE | TMODE_DUNDERLINE)) != 0) { pix = 1; + level = olevel = TMODE_DIM_LEVEL; if ((m & TMODE_DUNDERLINE) != 0) - level = olevel = TMODE_BOLD_LEVEL; + level = olevel = TMODE_NORMAL_LEVEL; } else if (midrow && (m & TMODE_STRIKE) != 0) pix = 1; -- 2.9.0