add parser loop
Matthias-Christian Ott ott@enolink.de
1 files changed,
13 insertions(+),
0 deletions(-)
jump to
M
std.c
→
std.c
@@ -312,5 +312,18 @@ else if(argc == 1)
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; }