From 19fbe1ea9098ccd8faaac3e60d26e4a10c4751c9 Mon Sep 17 00:00:00 2001 From: Aleksandr Rybalko Date: Mon, 7 Apr 2014 22:37:13 +0000 Subject: [PATCH] Do not fill screen, while muted. Sponsored by: The FreeBSD Foundation --- sys/kern/subr_terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_terminal.c b/sys/kern/subr_terminal.c index a3ccbaa82ea2..5f8ffec7e4ad 100644 --- a/sys/kern/subr_terminal.c +++ b/sys/kern/subr_terminal.c @@ -208,7 +208,7 @@ terminal_set_winsize_blank(struct terminal *tm, const struct winsize *size, teken_set_winsize(&tm->tm_emulator, &r.tr_end); TERMINAL_UNLOCK(tm); - if (blank != 0) + if ((blank != 0) && !(tm->tm_flags & TF_MUTE)) tm->tm_class->tc_fill(tm, &r, TCHAR_CREATE((teken_char_t)' ', &default_message));