Sebastian Neuper wrote:
> Hi. With OpenBSD 4.0, I encounter a wrong line wrapping
> in the text-terminals.
...
> So I looked through all the changes and noticed the new jump
> scroll feature for vt220 introduced in OpenBSD 4.0 and corrected
> in OpenBSD Current. My computer is a 200MMX with a 2,5GB
> Harddrive and compiling the complete source will be heavy or
> impossible. So I cannot check, if this is the problem or if it
> is already solved, and didn't send a bug-report.
Yes, this is precisely what was solved. Just for reference, the
following diff should fix these problems also on 4.0 release or stable.
You could consider building a 4.0 release or stable kernel with only
this patch on a fast machine, and then transfer it to your slow machine.
--- sys/dev/wscons/wsemul_vt100.c 17 Aug 2006 06:27:04 -0000 1.13
+++ sys/dev/wscons/wsemul_vt100.c 19 Oct 2006 17:35:09 -0000 1.15
@@ -1015,7 +1015,9 @@ wsemul_vt100_output(cookie, data, count,
}
break;
default:
- if (++pos >= NCOLS) {
+ if ((curchar & 0x7f) < 0x20)
+ break;
+ if (pos++ >= NCOLS) {
pos = 0;
curchar = ASCII_LF;
}