42 lines
1.4 KiB
HTML
42 lines
1.4 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: Defining a Visible Bell</TITLE>
|
|
<LINK HREF="Visual-Bell-7.html" REL=next>
|
|
<LINK HREF="Visual-Bell-5.html" REL=previous>
|
|
<LINK HREF="Visual-Bell.html#toc6" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="Visual-Bell-7.html">Next</A>
|
|
<A HREF="Visual-Bell-5.html">Previous</A>
|
|
<A HREF="Visual-Bell.html#toc6">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s6">6. Defining a Visible Bell</A></H2>
|
|
|
|
<P>You can add the entry for the <CODE>vb</CODE> capability in your own termcap
|
|
file, if it doesn't already define one. Dennis Henriksen
|
|
(duke@diku.dk) suggested to insert the following line in the
|
|
<CODE>termcap</CODE> entry for <CODE>linux</CODE> (note that the entry is called
|
|
<CODE>console</CODE> in old distributions):
|
|
<BLOCKQUOTE><CODE>
|
|
<PRE>
|
|
:vb=\E7\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l\E8:\
|
|
</PRE>
|
|
</CODE></BLOCKQUOTE>
|
|
|
|
The trailing backslash is used to escape the newline in the database.
|
|
Dennis' code does the following (his own words):
|
|
<UL>
|
|
<LI>Save the cursor position (uust a safety precaution).</LI>
|
|
<LI>Change the background color several times between normal and reverse.</LI>
|
|
<LI>Restore the cursor position.</LI>
|
|
</UL>
|
|
<P>
|
|
<HR>
|
|
<A HREF="Visual-Bell-7.html">Next</A>
|
|
<A HREF="Visual-Bell-5.html">Previous</A>
|
|
<A HREF="Visual-Bell.html#toc6">Contents</A>
|
|
</BODY>
|
|
</HTML>
|