I'm trying to tail the output from a command into a buffer, and I just learned that the command occasionally uses long strings of
^H to backspace over previous lines.
Like, the command stdout will first send
this line is temporary then send
^H^H^H^H^H^H^H^H^Hpermanent next, so the result in my terminal just looks like
this line is permanent.
Is there a simple way to recreate this effect in a buffer? If at all possible I'd really prefer to avoid iterating over the characters in the output stream and replacing each
^H with a call to
I've tried variations on
(insert ?^H) but no joy.
^H appears in the buffer at point, but I want the character before point to be deleted.