Skip to content

Commit 426a800

Browse files
committed
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.
1 parent 282076a commit 426a800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ fd_input(void)
417417
if (con_win == NULL && con_fd > 0 && (readfds & (1L << con_fd)))
418418
{
419419
long int read_bytes = Fread(con_fd, (long)READBUFSIZ, buf);
420-
if (read_bytes > 0) {
420+
if (read_bytes > 0 && !(read_bytes == 1 && buf[0] == '\007')) {
421421
if (gl_con_output) {
422422
open_console();
423423
write_text(con_win, buf, read_bytes);

0 commit comments

Comments
 (0)