scroll

scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log | Files | Refs | README

commit db05bd231885621108b77ae27375df121b78535c
parent 63f16494898a219a41fe5538a86af21b827bdb11
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date:   Tue, 14 Apr 2020 23:33:45 +0200

ptty: write input from child to stdout

Diffstat:
Mptty.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);