aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Eurenius <aes@spotify.com>2014-06-21 20:30:22 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2014-06-27 14:06:21 +0200
commit21bd4f4f9dce4dd19f218965e5a223c93a5a0fec (patch)
tree77de8d2027edaa21ce7d172d8965b92e9e257767
parent50e6355e0d6c9843b51ac4711980401205ce06c1 (diff)
downloadst-21bd4f4f9dce4dd19f218965e5a223c93a5a0fec.tar.gz
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@shike2.com>
-rw-r--r--st.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/st.c b/st.c
index 9637834..a69cc9e 100644
--- a/st.c
+++ b/st.c
@@ -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,