Fix remote accessing with ncurses interface