disable bell by default

This commit is contained in:
Doug MacEachern 2005-07-17 05:04:34 +00:00
parent 43da1c4ac4
commit ac2c89b0a9
1 changed files with 4 additions and 1 deletions

View File

@ -273,6 +273,7 @@ static char gl_quitc = 0; /* keyboard SIGQUIT char */
static char gl_suspc = 0; /* keyboard SIGTSTP char */ static char gl_suspc = 0; /* keyboard SIGTSTP char */
static char gl_dsuspc = 0; /* delayed SIGTSTP char */ static char gl_dsuspc = 0; /* delayed SIGTSTP char */
static int gl_search_mode = 0; /* search mode flag */ 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 int gl_savehist = 0; /* # of lines to save in hist file */
static char gl_histfile[256]; /* name of history file */ static char gl_histfile[256]; /* name of history file */
@ -723,8 +724,10 @@ gl_init()
static void static void
gl_bell() gl_bell()
{ {
if (gl_bell_enabled) {
gl_putc('\007'); gl_putc('\007');
} }
}
static void static void
gl_cleanup() gl_cleanup()