diff options
author | David Swasey <david.swasey@gmail.com> | 2010-05-19 18:27:05 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2010-05-19 18:27:05 -0700 |
commit | 670f730113743ef6ba4e093c56b812b6e4801314 (patch) | |
tree | e47585a4c8e4b8e779272cf25488926a79e0c49c /src/cmd/9term | |
parent | 9fb7a4f7f7b78476d496cac2b83f9006acd7f483 (diff) | |
download | plan9port-670f730113743ef6ba4e093c56b812b6e4801314.tar.gz plan9port-670f730113743ef6ba4e093c56b812b6e4801314.tar.bz2 plan9port-670f730113743ef6ba4e093c56b812b6e4801314.zip |
9term: add -c to force cooked mode
R=rsc
CC=codebot
http://codereview.appspot.com/1044043
Diffstat (limited to 'src/cmd/9term')
-rw-r--r-- | src/cmd/9term/9term.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c index 4ca833f5..92b253d3 100644 --- a/src/cmd/9term/9term.c +++ b/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 *dir, char *cmd, char **ar /* * Button 2 menu. Extra entry for always cook */ -int cooked; enum { |