summaryrefslogtreecommitdiff
path: root/libcons/priv.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2003-08-02 21:43:46 +0000
committerMarcus Brinkmann <marcus@gnu.org>2003-08-02 21:43:46 +0000
commitd74850a770b15db3c6d2fbae3f85b3318b1d5aa3 (patch)
tree377f09dba45ba16963d47473c153f2a993691314 /libcons/priv.h
parentacdd8445816fb1068728057ec65a8c6dd61bc1f5 (diff)
2003-08-01 Marco Gerards <metgerards@student.han.nl>
* opts-std-startup.c: Include <string.h>. (OPT_VISUAL_BELL): New macro. (OPT_AUDIBLE_BELL): Likewise. (_cons_visual_bell): New variable. (_cons_audible_bell): Likewise. (startup_options): Added options "--visual-bell" and "--audible-bell" ... (parse_startup_opt): ...and parse those new options here. * priv.h (bell_type_t): New enumeration. (_cons_visual_bell): New external variable. (_cons_audible_bell): Likewise. * file-changed.c (cons_S_file_changed): Use the right bell.
Diffstat (limited to 'libcons/priv.h')
-rw-r--r--libcons/priv.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/libcons/priv.h b/libcons/priv.h
index 598590e5..a1ec2451 100644
--- a/libcons/priv.h
+++ b/libcons/priv.h
@@ -1,5 +1,5 @@
/* Private declarations for cons library
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -21,6 +21,15 @@
#include "cons.h"
+/* The kind of bells available. */
+typedef enum
+ {
+ BELL_OFF,
+ BELL_VISUAL,
+ BELL_AUDIBLE
+ } bell_type_t;
+
+
/* Number of records the client is allowed to lag behind the
server. */
extern int _cons_slack;
@@ -34,6 +43,12 @@ extern int _cons_jump_down_on_output;
/* The filename of the console server. */
extern char *_cons_file;
+/* The type of bell used for the visual bell. */
+extern bell_type_t _cons_visual_bell;
+
+/* The type of bell used for the audible bell. */
+extern bell_type_t _cons_audible_bell;
+
/* Non-locking version of cons_vcons_scrollback. Does also not update
the display. */