Changed a bug with blocking in stdin when using getstr from ncurses