]> git.neil.brown.name Git - edlib.git/commitdiff
lib-renderline: make control chars stand out more.
authorNeilBrown <neil@brown.name>
Wed, 21 Jun 2023 07:53:03 +0000 (17:53 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 07:51:41 +0000 (17:51 +1000)
Conrtol chars should not appear in the line given to lib-renderline.
We try to handle them, but let us make them much more obvious so they
look wrong as well as being wrong.

Signed-off-by: NeilBrown <neil@brown.name>
lib-renderline.c

index d238bf0f3ca514eb5519b5e68e1b12e51528ae78..093914b8003c35b47ba945388157bda5f75d3e0b 100644 (file)
@@ -988,7 +988,7 @@ DEF_CMD(renderline)
                        buf[1] = ch + '@';
                        buf[2] = 0;
                        b = buf+2;
-                       buf_concat(&attr, ",underline,fg:red,");
+                       buf_concat(&attr, ",inverse,fg:red,");
                        in_lws = False;
                        ret = draw_some(p, focus, &rlst, &x, buf, &b,
                                        buf_final(&attr), in_lws,