Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Dec 2008 08:16:05 GMT
From:      Ed Schouten <ed@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 154320 for review
Message-ID:  <200812080816.mB88G5vk091576@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=154320

Change 154320 by ed@ed_dull on 2008/12/08 08:15:18

	Unbreak Cons25-support:
	
	When I implemented RIS (Reset to Initial State), I accidentally
	replaced teken_subr_vertical_position_absolute() with code that
	should have been placed inside the RIS routine. I didn't really
	notice this, until I ran some Cons25-apps, which heavily use
	VPA. This means we are once again compatible with syscons.

Affected files ...

.. //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_subr.h#9 edit

Differences ...

==== //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_subr.h#9 (text+ko) ====

@@ -1074,8 +1074,8 @@
 teken_subr_vertical_position_absolute(teken_t *t, unsigned int row)
 {
 
-	t->t_curattr = t->t_saved_curattr = teken_defattr;
-	t->t_cursor.tp_row = t->t_cursor.tp_col = 0;
-	t->t_saved_cursor = t->t_cursor;
-	t->t_stateflags = TS_AUTOWRAP;
+	t->t_cursor.tp_row = teken_clamp(row + t->t_originreg.ts_begin,
+	    1, t->t_originreg.ts_end) - 1;
+	t->t_stateflags &= ~TS_WRAPPED;
+	teken_funcs_cursor(t);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812080816.mB88G5vk091576>