From ac2c89b0a9d2dd2e4b777741d3ab1b2e25d35426 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 17 Jul 2005 05:04:34 +0000 Subject: [PATCH] disable bell by default --- src/sigar_getline.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sigar_getline.c b/src/sigar_getline.c index a44d4433..45a6a384 100644 --- a/src/sigar_getline.c +++ b/src/sigar_getline.c @@ -273,6 +273,7 @@ static char gl_quitc = 0; /* keyboard SIGQUIT char */ static char gl_suspc = 0; /* keyboard SIGTSTP char */ static char gl_dsuspc = 0; /* delayed SIGTSTP char */ static int gl_search_mode = 0; /* search mode flag */ +static int gl_bell_enabled = 0; /* bell mode */ static int gl_savehist = 0; /* # of lines to save in hist file */ static char gl_histfile[256]; /* name of history file */ @@ -723,7 +724,9 @@ gl_init() static void gl_bell() { - gl_putc('\007'); + if (gl_bell_enabled) { + gl_putc('\007'); + } } static void