summaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <rvargas@bsccs347.bsc.es>2013-09-12 20:41:34 +0200
committerChristoph Lohmann <20h@r-36.net>2013-09-12 20:47:41 +0200
commitbef599bb279e6c9b08853ceebefade066e362c48 (patch)
treece96a76ce068374ab125d5b198a16677aa830e96 /st.c
parentWide character support. (diff)
downloadst-bef599bb279e6c9b08853ceebefade066e362c48.tar.gz
st-bef599bb279e6c9b08853ceebefade066e362c48.zip
Add audible bell
\a is the character for bell, and st is only marking the window as urgent if it is not active. This patch adds an audible bell which can be disable with bellvolume variable. Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/st.c b/st.c
index 96d45bf..4a91073 100644
--- a/st.c
+++ b/st.c
@@ -2320,6 +2320,8 @@ tputc(char *c, int len) {
2320 case '\a': /* BEL */ 2320 case '\a': /* BEL */
2321 if(!(xw.state & WIN_FOCUSED)) 2321 if(!(xw.state & WIN_FOCUSED))
2322 xseturgency(1); 2322 xseturgency(1);
2323 if (bellvolume)
2324 XBell(xw.dpy, bellvolume);
2323 return; 2325 return;
2324 case '\033': /* ESC */ 2326 case '\033': /* ESC */
2325 csireset(); 2327 csireset();