Edit: Update the render algorithm.
Edit: Update the render algorithm.

The old erase sequence is restored and explained in the comment. Some
unncessary sequences are suppressed.

elves/elvish,elves/elvish,elves/elvish,elves/elvish,elves/elvish