Browse Source

bring up stats and terminal window on term startup

Signed-off-by: Graham MacDonald <grahamamacdonald@gmail.com>
Graham MacDonald 9 months ago
parent
commit
25b4ec077e
3 changed files with 10 additions and 12 deletions
  1. 2 4
      sys/src/cmd/rio/rio.c
  2. 7 7
      usr/harvey/bin/rc/riostart
  3. 1 1
      usr/harvey/lib/profile

+ 2 - 4
sys/src/cmd/rio/rio.c

@@ -129,8 +129,8 @@ threadmain(int argc, char *argv[])
 {
 	char *initstr, *kbdin, *s;
 	char buf[256];
-	//Image *i;
-	//Rectangle r;
+	Image *i;
+	Rectangle r;
 
 	if(strstr(argv[0], ".out") == nil){
 		menu3str[Exit] = nil;
@@ -221,7 +221,6 @@ threadmain(int argc, char *argv[])
 		fprint(2, "rio: can't create file system server: %r\n");
 	else{
 		errorshouldabort = 1;	/* suicide if there's trouble after this */
-#if 0
 		if(initstr)
 			proccreate(initcmd, initstr, STACK);
 		if(kbdin){
@@ -234,7 +233,6 @@ threadmain(int argc, char *argv[])
 			if(wkeyboard == nil)
 				error("can't create keyboard window");
 		}
-#endif
 		threadnotify(shutdown, 1);
 		recv(exitchan, nil);
 	}

+ 7 - 7
usr/harvey/bin/rc/riostart

@@ -5,13 +5,13 @@ wid=$scr(11)
 ht=$scr(12)
 
 window 0,0,161,117 stats -lmisce
-window 161,0,560,117 faces -i
+#window 161,0,560,117 faces -i
 
-if(~ `{screensize} small)
-	dump=acme.dump.small
-if not
-	dump=acme.dump
+#if(~ `{screensize} small)
+#	dump=acme.dump.small
+#if not
+#	dump=acme.dump
 
-a=`{echo $wid-35 | hoc }
-window 60,90,$a,$ht acme -l lib/$dump
+#a=`{echo $wid-35 | hoc }
+#window 60,90,$a,$ht acme -l lib/$dump
 window 20,140,610,450 /usr/harvey/lib/first.window

+ 1 - 1
usr/harvey/lib/profile

@@ -14,7 +14,7 @@ case terminal
 	echo -n 'res 3' > '#m/mousectl'
 	prompt=('term% ' '	')
 	fn term%{ $* }
-	exec rio -s #-i riostart
+	exec rio -s -i riostart
 case cpu
 	if (test -e /mnt/term/mnt/wsys) { # rio already running
 		bind -a /mnt/term/mnt/wsys /dev