1
1

* 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.
Этот коммит содержится в:
Roland Illig 2005-07-20 20:29:08 +00:00
родитель 680ccc7e56
Коммит 1c8c676c76
3 изменённых файлов: 15 добавлений и 5 удалений

Просмотреть файл

@ -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);