mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
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:
parent
ea8e239f00
commit
8b8419023f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user