aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term/rcstart.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-04-19 23:03:46 +0000
committerrsc <devnull@localhost>2004-04-19 23:03:46 +0000
commitb4a659b6cffd452fbdf54a81210f0540426b678a (patch)
tree953c3be9187fb1347b24d4c5f570a5d7a537e3a1 /src/cmd/9term/rcstart.c
parent98cd2746cff82ab359de6d6ce2c3f87b2c4166a8 (diff)
downloadplan9port-b4a659b6cffd452fbdf54a81210f0540426b678a.tar.gz
plan9port-b4a659b6cffd452fbdf54a81210f0540426b678a.tar.bz2
plan9port-b4a659b6cffd452fbdf54a81210f0540426b678a.zip
clean up when finished.
Diffstat (limited to 'src/cmd/9term/rcstart.c')
-rw-r--r--src/cmd/9term/rcstart.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd/9term/rcstart.c b/src/cmd/9term/rcstart.c
index 4b324830..7ee49350 100644
--- a/src/cmd/9term/rcstart.c
+++ b/src/cmd/9term/rcstart.c
@@ -1,9 +1,6 @@
#include <u.h>
-#include <libc.h>
-#if 0
-#include <sys/wait.h>
-#endif
#include <signal.h>
+#include <libc.h>
#include "term.h"
int
@@ -37,6 +34,8 @@ rcstart(int argc, char **argv, int *pfd, int *tfd)
dup(sfd, 1);
dup(sfd, 2);
system("stty tabs -onlcr onocr icanon echo erase '^h' intr '^?'");
+ if(noecho)
+ system("stty -echo");
for(i=3; i<100; i++)
close(i);
execvp(argv[0], argv);