Remove support for ^[J (ED)
Follow-up: remove handle_ed() declaration
Change variable name and use putchar() insted of putc()
Follow-up: change variable name
Use typedef'd type instead of prefixing with struct