[hackers] [st] Render invisible attribute || Anders Eurenius
commit 21bd4f4f9dce4dd19f218965e5a223c93a5a0fec
Author: Anders Eurenius <aes_AT_spotify.com>
Date: Sat Jun 21 20:30:22 2014 +0200
Render invisible attribute
Implement invisible mode by setting the foreground color to be the same
as the background color. Not rendering anything would also be an
alternative, but this seems less likely to cause surprises in
conjunction with any hacks.
Signed-off-by: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
diff --git a/st.c b/st.c
index 9637834..a69cc9e 100644
--- a/st.c
+++ b/st.c
_AT_@ -3236,6 +3236,9 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
if(base.mode & ATTR_BLINK && term.mode & MODE_BLINK)
fg = bg;
+ if(base.mode & ATTR_INVISIBLE)
+ fg = bg;
+
/* Intelligent cleaning up of the borders. */
if(x == 0) {
xclear(0, (y == 0)? 0 : winy, borderpx,
Received on Fri Jun 27 2014 - 14:06:32 CEST
This archive was generated by hypermail 2.3.0
: Fri Jun 27 2014 - 14:12:08 CEST