Change some uint32_t's to uintptr_t's
Handle backspace better
Erase the char as well as moving backwards, and update the cursor
Use bool rather than int
We're compiling against C99, no reason not to use stdbool