old-www/HOWTO/Visual-Bell-8.html

78 lines
3.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Visible bell mini-Howto: Telling Applications to Avoid Beeping</TITLE>
<LINK HREF="Visual-Bell-9.html" REL=next>
<LINK HREF="Visual-Bell-7.html" REL=previous>
<LINK HREF="Visual-Bell.html#toc8" REL=contents>
</HEAD>
<BODY>
<A HREF="Visual-Bell-9.html">Next</A>
<A HREF="Visual-Bell-7.html">Previous</A>
<A HREF="Visual-Bell.html#toc8">Contents</A>
<HR>
<H2><A NAME="s8">8. Telling Applications to Avoid Beeping</A></H2>
<P>This is an incomplete list of applications that can be instrued
to use the <CODE>vb</CODE> entry for the current terminal type (using either
the <CODE>termcap</CODE> information or the <CODE>terminfo</CODE> one):
<P>
<UL>
<LI>The X server: use the "<CODE>xset b</CODE>" command to select
the bell's behaviour. The command takes three numeric
arguments: volume, pitch and duration. "<CODE>xset -b</CODE>" disables
the bell altogether. Configuring the X server affects all
the applications running on the display.
</LI>
<LI><CODE>xterm</CODE>: xterm can convert each bell to either a visible or
audible signal. If you use the audible bell, the settings of
"<CODE>xset</CODE>" will apply. The bell in <CODE>xterm</CODE> defualts to be
audible, but you can use the "<CODE>-vb</CODE>" command line option
and the "<CODE>xterm*visualBell: true</CODE>" resource to turn it to a
visible flash. You can toggle visible/audible signaling at
run-time by using the menu invoked by
control--left-mouse-button. If you run X you most likely
won't need the following information.
</LI>
<LI><CODE>tcsh</CODE> (6.04 and later): "<CODE>set visiblebell</CODE>". The
instruction can be placed in <CODE>.cshrc</CODE> or can be issued
interactively. To reset the audible bell just "<CODE>unset
visiblebell</CODE>". To disable any notification issue use "<CODE>set
nobeep</CODE>" instead.
</LI>
<LI><CODE>bash</CODE> (any bash, as fas as I know): put "<CODE>set bell-style
visible</CODE>" in your <CODE>~/.bashrc</CODE>. Possible bell-style's
are also "none" or "audible".
</LI>
<LI><CODE>bash</CODE> (with <CODE>readline</CODE>, as well as other <CODE>readline</CODE>
based applications): put "<CODE>set prefer-visible-bell</CODE>" in
<CODE>~/.inputrc</CODE>.
</LI>
<LI><CODE>nvi</CODE> and <CODE>elvis</CODE>: put "<CODE>set flash</CODE>" in
<CODE>~/.exrc</CODE> or tell "<CODE>:set flash</CODE>" interactively (note
the colon). To disable the visible bell use <CODE>noflash</CODE> in
place of <CODE>flash</CODE>.
</LI>
<LI><CODE>emacs</CODE>: put "<CODE>(setq visible-bell t)</CODE>" in your
<CODE>~/.emacs</CODE>. It is disabled by "<CODE>(setq visible-bell
nil)</CODE>".
</LI>
<LI><CODE>less</CODE>: use "<CODE>-q</CODE>" on command line to use the visual bell,
use "<CODE>-Q</CODE>" to disable any reporting. Default options can be
put in your environment variable "<CODE>LESS</CODE>".
</LI>
<LI><CODE>screen</CODE>: issue the CtrlA-CtrlG command. It changes the
behaviour of all the virtual screens. Refer to the man page
under "CUSTOMIZATION" for setting the default.
</LI>
</UL>
<P>
<HR>
<A HREF="Visual-Bell-9.html">Next</A>
<A HREF="Visual-Bell-7.html">Previous</A>
<A HREF="Visual-Bell.html#toc8">Contents</A>
</BODY>
</HTML>