Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit term_beep(): use ordinary bell, don't attempt to...



details:   https://anonhg.NetBSD.org/src/rev/b6420d57d181
branches:  trunk
changeset: 501954:b6420d57d181
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Jan 09 19:43:15 2001 +0000

description:
term_beep(): use ordinary bell, don't attempt to use visual bell - if user wants
visual instead of ordinary bell, they should set their environment
appropriately

diffstat:

 lib/libedit/term.c |  13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diffs (34 lines):

diff -r 66c1c030288f -r b6420d57d181 lib/libedit/term.c
--- a/lib/libedit/term.c        Tue Jan 09 19:32:35 2001 +0000
+++ b/lib/libedit/term.c        Tue Jan 09 19:43:15 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: term.c,v 1.29 2001/01/09 17:22:09 jdolecek Exp $       */
+/*     $NetBSD: term.c,v 1.30 2001/01/09 19:43:15 jdolecek Exp $       */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)term.c     8.2 (Berkeley) 4/30/95";
 #else
-__RCSID("$NetBSD: term.c,v 1.29 2001/01/09 17:22:09 jdolecek Exp $");
+__RCSID("$NetBSD: term.c,v 1.30 2001/01/09 19:43:15 jdolecek Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -844,14 +844,7 @@
 protected void
 term_beep(EditLine *el)
 {
-
-       if (GoodStr(T_vb)) {
-               (void) tputs(Str(T_vb), 1, term__putc); /* visible bell */
-
-               /* if terminal supports it, use also ordinary (sound) bell */
-               if (GoodStr(T_bl))
-                       (void) tputs(Str(T_bl), 1, term__putc);
-       } else if (GoodStr(T_bl))
+       if (GoodStr(T_bl))
                /* what termcap says we should use */
                (void) tputs(Str(T_bl), 1, term__putc);
        else



Home | Main Index | Thread Index | Old Index