term_getch: return Nil instead of -1.