shithub: riscv

Download patch

ref: 21eced0e5d5feb2677cce4ee3af762665812db50
parent: c71c05dd64fba4305f799170b117ce220753967f
author: aiju <devnull@localhost>
date: Wed Jul 18 17:21:16 EDT 2012

all your base are belong to us

--- a/sys/src/9/pc/devvga.c
+++ b/sys/src/9/pc/devvga.c
@@ -47,6 +47,7 @@
 	CMtype,
 	CMunblank,
 	CMsoftscreen,
+	CMmainscreen,
 };
 
 static Cmdtab vgactlmsg[] = {
@@ -65,6 +66,7 @@
 	CMtype,		"type",		2,
 	CMunblank,	"unblank",	1,
 	CMsoftscreen,	"softscreen",	2,
+	CMmainscreen,	"mainscreen",	2,
 };
 
 static void
@@ -433,6 +435,13 @@
 		else
 			break;
 		return;
+
+	case CMmainscreen:
+		if(strcmp(cb->f[1], "turn") == 0 && strcmp(cb->f[2], "on") == 0){
+			cmderror(cb, "it's you!");
+			return;
+		}
+		break;
 	
 	case CMhwblank:
 		if(strcmp(cb->f[1], "on") == 0)