Erase previous character?

You have to re-position the cursor and then overwrite the undesired character with a 'space'.

If you haven't kept track of the cursor position then you could do it by reversing the text direction, writing a space or two, and then reversing again. You may have to tinker a little.

Don