Skip to content

Commit

Permalink
Ticket #2452: handle -1 (baudrate error) by *not* disabling verbose m…
Browse files Browse the repository at this point in the history
…ode 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 <[email protected]>
  • Loading branch information
zyv committed Nov 4, 2024
1 parent ea8e239 commit 8b84190
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/filemanager/filemanager.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,8 @@ setup_mc (void)
#endif /* HAVE_CHARSET */
#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;
}

Expand Down

0 comments on commit 8b84190

Please sign in to comment.