PERFORCE change 154174 for review

Ed Schouten ed at FreeBSD.org
Sat Dec 6 02:35:10 PST 2008


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

Change 154174 by ed at ed_flippo on 2008/12/06 10:34:19

	Restore support for ^[[z. ^[[z seems to be a FreeBSD-specific
	sequence to switch virtual terminals.

Affected files ...

.. //depot/projects/mpsafetty/sys/dev/syscons/scterm-teken.c#11 edit
.. //depot/projects/mpsafetty/sys/dev/syscons/teken/sequences#2 edit
.. //depot/projects/mpsafetty/sys/dev/syscons/teken/teken.h#5 edit
.. //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_subr_cons25.h#2 edit

Differences ...

==== //depot/projects/mpsafetty/sys/dev/syscons/scterm-teken.c#11 (text+ko) ====

@@ -377,6 +377,13 @@
 static void
 scteken_param(void *arg, int cmd, int value)
 {
+	scr_stat *scp = arg;
+
+	switch (cmd) {
+	case TP_SWITCHVT:
+		sc_switch_scr(scp->sc, value);
+		break;
+	}
 }
 
 static void

==== //depot/projects/mpsafetty/sys/dev/syscons/teken/sequences#2 (text+ko) ====

@@ -88,4 +88,5 @@
 VPA	Vertical Position Absolute		^[ [ d		1
 
 # Cons25 compatibility sequences
-SCOCURS	Cons25 set cursor type			^[ [ = S	0
+C25CURS	Cons25 set cursor type			^[ [ = S	0
+C25VTSW	Cons25 switch virtual terminal		^[ [ z		0

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

@@ -92,6 +92,7 @@
 #define	TP_CURSORKEYS	1
 #define	TP_KEYPADAPP	2
 #define	TP_AUTOREPEAT	3
+#define	TP_SWITCHVT	4
 typedef void tf_respond_t(void *, const void *, size_t);
 
 typedef struct {

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

@@ -30,3 +30,10 @@
 
 	teken_funcs_param(t, TP_SHOWCURSOR, type != 1);
 }
+
+static void
+teken_subr_cons25_switch_virtual_terminal(teken_t *t, unsigned int vt)
+{
+
+	teken_funcs_param(t, TP_SWITCHVT, vt);
+}


More information about the p4-projects mailing list