From db0398ec815220d59e150021f3a401d93d794330 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Tue, 23 May 2017 15:22:18 -0700 Subject: [PATCH] ncurses: specify ESCDELAY after setting locale Otherwise the locale change is ignored on some systems --- src/backend/curses/n.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/curses/n.rs b/src/backend/curses/n.rs index 467a6c2..00cff61 100644 --- a/src/backend/curses/n.rs +++ b/src/backend/curses/n.rs @@ -14,8 +14,8 @@ impl backend::Backend for Concrete { // The delay is the time ncurses wait after pressing ESC // to see if it's an escape sequence. // Default delay is way too long. 25 is imperceptible yet works fine. - ::std::env::set_var("ESCDELAY", "25"); ncurses::setlocale(ncurses::LcCategory::all, ""); + ::std::env::set_var("ESCDELAY", "25"); ncurses::initscr(); ncurses::keypad(ncurses::stdscr(), true); ncurses::noecho();