From 8a295b6e1d8d2db8be00c6a717e8847959ba45bb Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sat, 4 Feb 2006 16:30:00 +0000 Subject: [PATCH] Beep on minor system messages --- mbmon/mbmon.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mbmon/mbmon.c b/mbmon/mbmon.c index 9b1acb5a..c2051db0 100644 --- a/mbmon/mbmon.c +++ b/mbmon/mbmon.c @@ -505,7 +505,6 @@ void Showline(int y, int x, char *msgin) mbse_colour(LIGHTRED, BLACK); } else { mbse_colour(LIGHTMAGENTA, BLACK); - putchar('\007'); } mbse_mvprintw(y, x, msg); } else { @@ -526,6 +525,12 @@ void DispMsg(char *msg) { int i; + /* + * Beep on minor system messages + */ + if ((msg[0] == '*') && (msg[1] != '*')) + putchar('\007'); + strncpy(rbuf[rpointer], msg, 80); Showline(4+rpointer, 1, rbuf[rpointer]); if (rpointer == rsize) {