1
1

* textconf.h: Remove status_using_ncurses - it's useless now.

Adjust all users.  Call do_exit_ca_mode() and do_enter_ca_mode()
even with ncurses.
Этот коммит содержится в:
Pavel Roskin 2001-09-15 23:44:43 +00:00
родитель dad13bfb19
Коммит 7e69c250a5
5 изменённых файлов: 10 добавлений и 17 удалений

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

@ -1,5 +1,9 @@
2001-09-15 Pavel Roskin <proski@gnu.org>
* textconf.h: Remove status_using_ncurses - it's useless now.
Adjust all users. Call do_exit_ca_mode() and do_enter_ca_mode()
even with ncurses.
* main.c (init_xterm_support): Don't enable xterm_flag just
because of "kmous" in terminfo. Setiing this flag means much
more than just mouse support. Recognize terminals beginning

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

@ -942,8 +942,7 @@ view_other_cmd (void)
#endif /* HAVE_SLANG */
keypad(stdscr, FALSE);
endwin ();
if (!status_using_ncurses)
do_exit_ca_mode ();
do_exit_ca_mode ();
mc_raw_mode ();
if (console_flag)
restore_console ();
@ -968,8 +967,7 @@ view_other_cmd (void)
if (console_flag)
handle_console (CONSOLE_SAVE);
if (!status_using_ncurses)
do_enter_ca_mode ();
do_enter_ca_mode ();
reset_prog_mode ();
keypad(stdscr, TRUE);

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

@ -578,9 +578,8 @@ void init_curses (void)
* or you'll have to press Esc three times to dismiss a dialog box.
*/
ESCDELAY = 0;
#endif
if (!status_using_ncurses)
do_enter_ca_mode ();
#endif /* HAVE_ESCDELAY */
do_enter_ca_mode ();
mc_raw_mode ();
noecho ();
keypad (stdscr, TRUE);

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

@ -91,11 +91,9 @@ edition_pre_exec (void)
* screen page: do it now.
*
* Do not move this before endwin: in some systems rmcup includes
* a call to clear screen, so it will end up clearing the sheel screen.
* a call to clear screen, so it will end up clearing the shell screen.
*/
if (!status_using_ncurses){
do_exit_ca_mode ();
}
do_exit_ca_mode ();
}
void

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

@ -9,12 +9,6 @@
#define x_flush_events()
#define port_shutdown_extra_fds()
#ifdef USE_NCURSES
#define status_using_ncurses (1)
#else
#define status_using_ncurses (0)
#endif
extern void version (int verbose);
#endif /* __TEXTCONF_H */