Browse Source

add parser loop

master
Matthias-Christian Ott 17 years ago
parent
commit
dc01596e6d
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      std.c

+ 13
- 0
std.c View File

@ -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;
}

Loading…
Cancel
Save