Commit Diff


commit - 9fb7a4f7f7b78476d496cac2b83f9006acd7f483
commit + 670f730113743ef6ba4e093c56b812b6e4801314
blob - a2f21384feac7df84146ce39dce1d74fa430b57e
blob + a9f687c2c4769b1e69e25a19936b2a4fa2d6939e
--- man/man1/9term.1
+++ man/man1/9term.1
@@ -4,7 +4,7 @@
 .SH SYNOPSIS
 .B 9term
 [
-.B -as
+.B -asc
 ]
 [
 .B -f
@@ -30,10 +30,15 @@ Otherwise button 2 brings up a menu, described below.
 .PP
 The
 .B -s
-option initializes windows so that text scrolls;
+option initializes the window so that text scrolls;
 the default is not to scroll.
 .PP
 The
+.B -c
+option starts the window in forced cooked mode,
+described below.
+.PP
+The
 .I font
 argument to 
 .B -f
blob - 4ca833f56cf2d7edb7d9b28576ca3e437fe8f5e6
blob + 92b253d33af5c1f4468edcf1b97f25416e717713
--- src/cmd/9term/9term.c
+++ src/cmd/9term/9term.c
@@ -38,6 +38,7 @@ void resizethread(void*);
 void	servedevtext(void);
 
 int errorshouldabort = 0;
+int cooked;
 
 void
 usage(void)
@@ -69,6 +70,9 @@ threadmain(int argc, char *argv[])
 	case 's':
 		scrolling = TRUE;
 		break;
+	case 'c':
+		cooked = TRUE;
+		break;
 	case 'w':	/* started from rio or 9wm */
 		use9wm = TRUE;
 		break;
@@ -277,7 +281,6 @@ new(Image *i, int hideit, int scrollit, int pid, char 
 /*
  * Button 2 menu.  Extra entry for always cook
  */
-int cooked;
 
 enum
 {