mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
* key.c: When the command line option -x is given, enable
additional key sequences that are typical for xterms. * main.c: First parse command line arguments, then initialize key sequences.
This commit is contained in:
parent
680ccc7e56
commit
1c8c676c76
@ -1,3 +1,10 @@
|
||||
2005-07-20 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* key.c: When the command line option -x is given, enable
|
||||
additional key sequences that are typical for xterms.
|
||||
* main.c: First parse command line arguments, then initialize
|
||||
key sequences.
|
||||
|
||||
2005-07-20 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* util.c: Added gettext_ui(), which translates a string and
|
||||
|
@ -432,9 +432,12 @@ init_key (void)
|
||||
define_sequences (mc_default_keys);
|
||||
|
||||
/* Terminfo on irix does not have some keys */
|
||||
if (term
|
||||
&& (!strncmp (term, "iris-ansi", 9) || !strncmp (term, "xterm", 5)
|
||||
|| !strncmp (term, "rxvt", 4)))
|
||||
if (xterm_flag
|
||||
|| (term != NULL
|
||||
&& (strncmp (term, "iris-ansi", 9) == 0
|
||||
|| strncmp (term, "xterm", 5) == 0
|
||||
|| strncmp (term, "rxvt", 4) == 0
|
||||
|| strcmp (term, "screen") == 0)))
|
||||
define_sequences (xterm_key_defines);
|
||||
|
||||
/* load some additional keys (e.g. direct Alt-? support) */
|
||||
|
@ -2160,12 +2160,12 @@ main (int argc, char *argv[])
|
||||
SLtt_Ignore_Beep = 1;
|
||||
#endif
|
||||
|
||||
handle_args (argc, argv);
|
||||
|
||||
/* NOTE: This has to be called before slang_init or whatever routine
|
||||
calls any define_sequence */
|
||||
init_key ();
|
||||
|
||||
handle_args (argc, argv);
|
||||
|
||||
/* Must be done before installing the SIGCHLD handler [[FIXME]] */
|
||||
handle_console (CONSOLE_INIT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user