pancurses: set ESCDELAY after initializing screen

This commit is contained in:
Alexandre Bury 2017-05-23 15:25:52 -07:00
parent db0398ec81
commit cbe37172b5

View File

@ -14,8 +14,8 @@ pub struct Concrete {
impl backend::Backend for Concrete { impl backend::Backend for Concrete {
fn init() -> Self { fn init() -> Self {
::std::env::set_var("ESCDELAY", "25");
let window = pancurses::initscr(); let window = pancurses::initscr();
::std::env::set_var("ESCDELAY", "25");
window.keypad(true); window.keypad(true);
pancurses::noecho(); pancurses::noecho();
pancurses::cbreak(); pancurses::cbreak();