Not only can you implement that with PTYs, it's how they operate by default. That's why you can telnet to an HTTP server and make a mistake and use backspace to fix it. The terminal will only send lines over. You have to use a command to put it into "raw" mode so the application gets every keystroke immediately. You have to ask for your PTY to not work that way.