If I work on it again, I'll have to import the readline library, which would allow it to use backspace and arrow keys.