Ticket #2452: handle -1 (baudrate error) by *not* disabling verbose mode implicitly

If we can't reliably identify slow terminal, we should not implicitly disable
verbose mode, instead let user disable it manually by starting with the slow
terminal switch.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2024-10-22 13:24:30 +02:00
parent ea8e239f00
commit 8b8419023f

View File

@ -854,7 +854,8 @@ setup_mc (void)
#endif /* HAVE_CHARSET */ #endif /* HAVE_CHARSET */
#endif /* HAVE_SLANG */ #endif /* HAVE_SLANG */
if ((tty_baudrate () < 9600) || mc_global.tty.slow_terminal) const int baudrate = tty_baudrate ();
if ((baudrate > 0 && baudrate < 9600) || mc_global.tty.slow_terminal)
verbose = FALSE; verbose = FALSE;
} }