aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-22 13:25:53 +0000
committerKalle Wallin <kaw@linux.se>2004-06-22 13:25:53 +0000
commit539be061ff11cb2e095393e2e478c5a50979b3bd (patch)
tree52ab5b89660991a3ffe5dfe009b27eb115354747 /src/main.c
parent8e032a17efe4851c9c9de61775101e890d5594f1 (diff)
downloadmpd-539be061ff11cb2e095393e2e478c5a50979b3bd.tar.gz
mpd-539be061ff11cb2e095393e2e478c5a50979b3bd.tar.xz
mpd-539be061ff11cb2e095393e2e478c5a50979b3bd.zip
added screen_bell() for optional audible/visible bells
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1612 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/main.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 382897ddb..f2a0e3d29 100644
--- a/src/main.c
+++ b/src/main.c
@@ -30,9 +30,10 @@
#include "mpdclient.h"
#include "support.h"
#include "options.h"
+#include "conf.h"
#include "command.h"
#include "screen.h"
-#include "conf.h"
+#include "screen_utils.h"
#define BUFSIZE 256
@@ -67,11 +68,11 @@ error_callback(mpdclient_t *c, gint error, gchar *msg)
break;
case MPD_ERROR_ACK:
screen_status_printf("%s", error_msg(msg));
- beep();
+ screen_bell();
break;
default:
screen_status_printf("%s", msg);
- beep();
+ screen_bell();
doupdate();
connected = FALSE;
}
@@ -163,9 +164,10 @@ main(int argc, const char *argv[])
}
/* set xterm title */
- /* if( g_getenv("DISPLAY") )
- * printf("%c]0;%s%c", '\033', PACKAGE " version " VERSION, '\007');
- */
+#ifdef DEBUG
+ options->enable_xterm_title = 1;
+ set_xterm_title(PACKAGE " version " VERSION);
+#endif
/* install exit function */
atexit(exit_and_cleanup);