PERFORCE change 154320 for review

Ed Schouten ed at FreeBSD.org
Mon Dec 8 00:16:05 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=154320

Change 154320 by ed at 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);
 }


More information about the p4-projects mailing list