pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d055fd
)
add parser loop
author
Matthias-Christian Ott
<ott@enolink.de>
Sun, 8 Jun 2008 19:17:02 +0000
(21:17 +0200)
committer
Matthias-Christian Ott
<ott@enolink.de>
Sun, 8 Jun 2008 19:17:02 +0000
(21:17 +0200)
std.c
patch
|
blob
|
history
diff --git
a/std.c
b/std.c
index
0dae5c2
..
be3f41a
100644
(file)
--- 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;
}