Refactoring conio.h.