Beep on minor system messages

This commit is contained in:
Michiel Broek 2006-02-04 16:30:00 +00:00
parent e6578c833b
commit 8a295b6e1d

View File

@ -505,7 +505,6 @@ void Showline(int y, int x, char *msgin)
mbse_colour(LIGHTRED, BLACK); mbse_colour(LIGHTRED, BLACK);
} else { } else {
mbse_colour(LIGHTMAGENTA, BLACK); mbse_colour(LIGHTMAGENTA, BLACK);
putchar('\007');
} }
mbse_mvprintw(y, x, msg); mbse_mvprintw(y, x, msg);
} else { } else {
@ -526,6 +525,12 @@ void DispMsg(char *msg)
{ {
int i; int i;
/*
* Beep on minor system messages
*/
if ((msg[0] == '*') && (msg[1] != '*'))
putchar('\007');
strncpy(rbuf[rpointer], msg, 80); strncpy(rbuf[rpointer], msg, 80);
Showline(4+rpointer, 1, rbuf[rpointer]); Showline(4+rpointer, 1, rbuf[rpointer]);
if (rpointer == rsize) { if (rpointer == rsize) {