summaryrefslogtreecommitdiff
path: root/std.c
diff options
context:
space:
mode:
Diffstat (limited to 'std.c')
-rw-r--r--std.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/std.c b/std.c
index 0dae5c2..be3f41a 100644
--- a/std.c
+++ b/std.c
@@ -312,5 +312,18 @@ main(int argc, char *argv[]) {
eprint("usage: st [-v]\n");
getpty();
shell();
+ fptm = fdopen(ptm, "r+");
+ if(!fptm)
+ eprintn("cannot open slave pty");
+ for(;;) {
+ c = getc(fptm);
+ switch(c) {
+ case '\033':
+ parseesc();
+ break;
+ default:
+ putchar(c);
+ }
+ }
return 0;
}