diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2017-11-27 04:08:26 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-28 12:18:13 +0000 |
commit | 1c339fab9c3b5d19b01ec9a30dfe12aa4442b0ad (patch) | |
tree | 5eea88c50be7d2718963cae9712a43c05fffc064 /main/mc/tty_init-unify-curses-initialization.patch | |
parent | 70aca63d4b8ac971120c75819c96db58d77d7c36 (diff) | |
download | aports-1c339fab9c3b5d19b01ec9a30dfe12aa4442b0ad.tar.bz2 aports-1c339fab9c3b5d19b01ec9a30dfe12aa4442b0ad.tar.xz |
main/mc: upgrade to 4.8.20
Diffstat (limited to 'main/mc/tty_init-unify-curses-initialization.patch')
-rw-r--r-- | main/mc/tty_init-unify-curses-initialization.patch | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/main/mc/tty_init-unify-curses-initialization.patch b/main/mc/tty_init-unify-curses-initialization.patch deleted file mode 100644 index d4379023ef..0000000000 --- a/main/mc/tty_init-unify-curses-initialization.patch +++ /dev/null @@ -1,61 +0,0 @@ -From 4d46a108629beb66a293672db7b44f863b6598ba Mon Sep 17 00:00:00 2001 -From: Thomas Dickey <dickey@his.com> -Date: Fri, 14 Apr 2017 14:06:13 +0300 -Subject: [PATCH] Ticket #3697: (tty_init): unify curses initialization - -...for various curses implementations. - -Signed-off-by: Andrew Borodin <aborodin@vmail.ru> ---- - lib/tty/tty-ncurses.c | 26 +++++++++----------------- - 1 file changed, 9 insertions(+), 17 deletions(-) - -diff --git a/lib/tty/tty-ncurses.c b/lib/tty/tty-ncurses.c -index a7a11f368..8e69b39f6 100644 ---- a/lib/tty/tty-ncurses.c -+++ b/lib/tty/tty-ncurses.c -@@ -179,6 +179,8 @@ mc_tty_normalize_lines_char (const char *ch) - void - tty_init (gboolean mouse_enable, gboolean is_xterm) - { -+ struct termios mode; -+ - initscr (); - - #ifdef HAVE_ESCDELAY -@@ -194,25 +196,15 @@ tty_init (gboolean mouse_enable, gboolean is_xterm) - ESCDELAY = 200; - #endif /* HAVE_ESCDELAY */ - --#ifdef NCURSES_VERSION -+ tcgetattr (STDIN_FILENO, &mode); - /* use Ctrl-g to generate SIGINT */ -- cur_term->Nttyb.c_cc[VINTR] = CTRL ('g'); /* ^g */ -+ mode.c_cc[VINTR] = CTRL ('g'); /* ^g */ - /* disable SIGQUIT to allow use Ctrl-\ key */ -- cur_term->Nttyb.c_cc[VQUIT] = NULL_VALUE; -- tcsetattr (cur_term->Filedes, TCSANOW, &cur_term->Nttyb); --#else -- /* other curses implementation (bsd curses, ...) */ -- { -- struct termios mode; -- -- tcgetattr (STDIN_FILENO, &mode); -- /* use Ctrl-g to generate SIGINT */ -- mode.c_cc[VINTR] = CTRL ('g'); /* ^g */ -- /* disable SIGQUIT to allow use Ctrl-\ key */ -- mode.c_cc[VQUIT] = NULL_VALUE; -- tcsetattr (STDIN_FILENO, TCSANOW, &mode); -- } --#endif /* NCURSES_VERSION */ -+ mode.c_cc[VQUIT] = NULL_VALUE; -+ tcsetattr (STDIN_FILENO, TCSANOW, &mode); -+ -+ /* curses remembers the "in-program" modes after this call */ -+ def_prog_mode (); - - tty_start_interrupt_key (); - --- -2.15.0 - |