Re: [PATCH] Fix backspace on wrapped lines in console (virtual terminal)

From: Joe Peterson
Date: Sat Sep 20 2008 - 12:48:26 EST


Alan Cox wrote:
> On Sat, 20 Sep 2008 10:25:49 -0600
> Joe Peterson <joe@xxxxxxxxxxx> wrote:
>
>> Attached is a patch that fixes virtual terminal problems when backspace
>> is used on wrapped lines (see patch text for the specific issues). The
>> issues can be demonstrated by trying two things in the console (vt):
>
> I would need to power up my vt420 to check (yes I have one lurking in a
> corner!) but I have a feeling the current behaviour (not going up a line)
> is correct for ansi type terminals.

Would it still erase the actual characters input, though? This would
cause one to believe they were not erased, since the visual feedback
does not match... I wonder if "fixing" this in Linux would really break
the needed vt hardware compatibility - maybe that case lies in the
"undefined" area in a sense.

What about the need_wrap (end of line) case - I wonder what the real
vt420 does for that. If it doesn't match the behavior this patch
"fixes", it would probably be a vt420 bug...

Yes, these things are certainly getting harder to check against real
hardware these days! :)

-Joe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/