It's difficult to follow your description, but it sounds to me that you have a "wrong" TERM setting. This can cause artefacts when doing line-editing.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
|