Introduction
Introduction Statistics Contact Development Disclaimer Help
ptty: write input from child to stdout - scroll - scrollbackbuffer program for …
git clone git://git.suckless.org/scroll
Log
Files
Refs
README
LICENSE
---
commit db05bd231885621108b77ae27375df121b78535c
parent 63f16494898a219a41fe5538a86af21b827bdb11
Author: Jan Klemkow <[email protected]>
Date: Tue, 14 Apr 2020 23:33:45 +0200
ptty: write input from child to stdout
Diffstat:
M ptty.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/ptty.c b/ptty.c
@@ -96,7 +96,8 @@ main(int argc, char *argv[])
die("close:");
char buf[BUFSIZ];
- while (fgets(buf, sizeof buf, fh) != NULL);
+ while (fgets(buf, sizeof buf, fh) != NULL)
+ fputs(buf, stdout);
int status;
waitpid(pid, &status, 0);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.