Less aggressive underline
authorMatthew Mondor <mmondor@pulsar-zone.net>
Fri, 15 Apr 2022 18:48:31 +0000 (18:48 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Fri, 15 Apr 2022 18:48:31 +0000 (18:48 +0000)
MATT/TODO.txt
hacks/analogterm.c

index 957a6c9..119e673 100644 (file)
@@ -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
index a337a34..9a03e39 100644 (file)
@@ -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;