comparison src/redisplay-tty.c @ 82:6a378aca36af r20-0b91

Import from CVS: tag r20-0b91
author cvs
date Mon, 13 Aug 2007 09:07:36 +0200
parents 54cc21c15cbb
children d2f30a177268
comparison
equal deleted inserted replaced
81:ebca3d831cea 82:6a378aca36af
1071 static void 1071 static void
1072 tty_ring_bell (struct device *d, int volume, int pitch, int duration) 1072 tty_ring_bell (struct device *d, int volume, int pitch, int duration)
1073 { 1073 {
1074 struct console *c = XCONSOLE (DEVICE_CONSOLE (d)); 1074 struct console *c = XCONSOLE (DEVICE_CONSOLE (d));
1075 1075
1076 OUTPUT1 (c, TTY_SD (c).audio_bell); 1076 if (volume)
1077 Lstream_flush (XLSTREAM (CONSOLE_TTY_DATA (c)->outstream)); 1077 {
1078 OUTPUT1 (c, TTY_SD (c).audio_bell);
1079 Lstream_flush (XLSTREAM (CONSOLE_TTY_DATA (c)->outstream));
1080 }
1078 } 1081 }
1079 1082
1080 1083
1081 int 1084 int
1082 init_tty_for_redisplay (struct device *d, char *terminal_type) 1085 init_tty_for_redisplay (struct device *d, char *terminal_type)