From 426a80005d36c92a7f991f76eba39a650c6043c4 Mon Sep 17 00:00:00 2001 From: Miro Kropacek Date: Sun, 18 Aug 2024 19:55:46 +0200 Subject: [PATCH] Don't open console if only bell is "printed" This had an annoying effect on Teradesk's shutdown dialog or when QED used the bell to signalize an error. Fixes freemint/teradesk#13. --- proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc.c b/proc.c index 2c0c0c1..6029a9c 100644 --- a/proc.c +++ b/proc.c @@ -417,7 +417,7 @@ fd_input(void) if (con_win == NULL && con_fd > 0 && (readfds & (1L << con_fd))) { long int read_bytes = Fread(con_fd, (long)READBUFSIZ, buf); - if (read_bytes > 0) { + if (read_bytes > 0 && !(read_bytes == 1 && buf[0] == '\007')) { if (gl_con_output) { open_console(); write_text(con_win, buf, read_bytes);