mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +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>
|
2005-07-20 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
* util.c: Added gettext_ui(), which translates a string and
|
* util.c: Added gettext_ui(), which translates a string and
|
||||||
|
@ -432,9 +432,12 @@ init_key (void)
|
|||||||
define_sequences (mc_default_keys);
|
define_sequences (mc_default_keys);
|
||||||
|
|
||||||
/* Terminfo on irix does not have some keys */
|
/* Terminfo on irix does not have some keys */
|
||||||
if (term
|
if (xterm_flag
|
||||||
&& (!strncmp (term, "iris-ansi", 9) || !strncmp (term, "xterm", 5)
|
|| (term != NULL
|
||||||
|| !strncmp (term, "rxvt", 4)))
|
&& (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);
|
define_sequences (xterm_key_defines);
|
||||||
|
|
||||||
/* load some additional keys (e.g. direct Alt-? support) */
|
/* load some additional keys (e.g. direct Alt-? support) */
|
||||||
|
@ -2160,12 +2160,12 @@ main (int argc, char *argv[])
|
|||||||
SLtt_Ignore_Beep = 1;
|
SLtt_Ignore_Beep = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
handle_args (argc, argv);
|
||||||
|
|
||||||
/* NOTE: This has to be called before slang_init or whatever routine
|
/* NOTE: This has to be called before slang_init or whatever routine
|
||||||
calls any define_sequence */
|
calls any define_sequence */
|
||||||
init_key ();
|
init_key ();
|
||||||
|
|
||||||
handle_args (argc, argv);
|
|
||||||
|
|
||||||
/* Must be done before installing the SIGCHLD handler [[FIXME]] */
|
/* Must be done before installing the SIGCHLD handler [[FIXME]] */
|
||||||
handle_console (CONSOLE_INIT);
|
handle_console (CONSOLE_INIT);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user