Improved backspace delete and carriage return newline behaviour.