mirror of https://github.com/MidnightCommander/mc
(main): call tty_check_term() right after mc_args_parse().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
07db4c4fa3
commit
19d852dbd3
14
src/main.c
14
src/main.c
|
@ -279,6 +279,13 @@ main (int argc, char *argv[])
|
|||
return exit_code;
|
||||
}
|
||||
|
||||
/* check terminal type
|
||||
* $TERM must be set and not empty
|
||||
* mc_global.tty.xterm_flag is used in init_key() and tty_init()
|
||||
* Do this after mc_args_parse() where mc_args__force_xterm is set up.
|
||||
*/
|
||||
mc_global.tty.xterm_flag = tty_check_term (mc_args__force_xterm);
|
||||
|
||||
/* do this before mc_args_show_info () to view paths in the --datadir-info output */
|
||||
OS_Setup ();
|
||||
|
||||
|
@ -346,13 +353,6 @@ main (int argc, char *argv[])
|
|||
vfs_path_free (vpath, TRUE);
|
||||
}
|
||||
|
||||
/* check terminal type
|
||||
* $TERM must be set and not empty
|
||||
* mc_global.tty.xterm_flag is used in init_key() and tty_init()
|
||||
* Do this after mc_args_handle() where mc_args__force_xterm is set up.
|
||||
*/
|
||||
mc_global.tty.xterm_flag = tty_check_term (mc_args__force_xterm);
|
||||
|
||||
/* NOTE: This has to be called before tty_init or whatever routine
|
||||
calls any define_sequence */
|
||||
init_key ();
|
||||
|
|
Loading…
Reference in New Issue