Remove curses depedent code because unexpected behaviour occurred on Windows