st

simple terminal

git clone https://9o.is/git/st.git

commit 7db03bd4d66248b6391087a2199dca2db390a048
parent 41c3a0bc0c6f867442640780416a5d91c412e540
Author: Christoph Lohmann <20h@r-36.net>
Date:   Fri, 26 Apr 2013 18:55:40 +0200

Be more efficient in blinking.

Diffstat:
Mst.c | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/st.c b/st.c @@ -3442,9 +3442,13 @@ run(void) { if(xev && !FD_ISSET(xfd, &rfd)) xev--; - if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd) \ - && !blinkset) { - tv = NULL; + if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd)) { + if(blinkset) { + drawtimeout.tv_usec = 1000 * \ + blinktimeout; + } else { + tv = NULL; + } } } }