Rename define CONFIG_ANNOYING_NOISE --> CONFIG_TERMINAL_BELL

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2015-04-06 15:22:35 +02:00
parent 6a8556733a
commit 9c163ff72b
4 changed files with 6 additions and 6 deletions

View File

@ -3,9 +3,6 @@
/* Define to 1 if the `closedir' function returns void instead of `int'. */
#undef CLOSEDIR_VOID
/* Define to enable terminal bell on completion. */
#undef CONFIG_ANNOYING_NOISE
/* Define to include ANSI arrow keys support. */
#undef CONFIG_ANSI_ARROWS
@ -21,6 +18,9 @@
/* Define to enable SIGSTOP (Ctrl-Z) key. */
#undef CONFIG_SIGSTOP
/* Define to enable terminal bell on completion. */
#undef CONFIG_TERMINAL_BELL
/* Define to skip duplicate lines in the scrollback history. */
#undef CONFIG_UNIQUE_HISTORY

2
configure vendored
View File

@ -12078,7 +12078,7 @@ fi
# Check whether --enable-terminal-bell was given.
if test "${enable_terminal_bell+set}" = set; then :
enableval=$enable_terminal_bell;
$as_echo "#define CONFIG_ANNOYING_NOISE 1" >>confdefs.h
$as_echo "#define CONFIG_TERMINAL_BELL 1" >>confdefs.h
fi

View File

@ -78,7 +78,7 @@ AC_ARG_ENABLE(sigstop,
AC_ARG_ENABLE(terminal-bell,
[AS_HELP_STRING([--enable-terminal-bell], [Enable terminal bell on completion.])],
AC_DEFINE([CONFIG_ANNOYING_NOISE], 1, [Define to enable terminal bell on completion.]))
AC_DEFINE([CONFIG_TERMINAL_BELL], 1, [Define to enable terminal bell on completion.]))
AC_ARG_ENABLE(termcap,
[AS_HELP_STRING([--enable-termcap], [Use termcap library to query terminal size.])],

View File

@ -1390,7 +1390,7 @@ static el_status_t c_complete(void)
if (len > 0) {
s = insert_string(string);
#ifdef CONFIG_ANNOYING_NOISE
#ifdef CONFIG_TERMINAL_BELL
if (!unique)
el_ring_bell();
#endif