From a2558ca046ceb85bac62cee7d1d34ab660955dc0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= <john@ankarstrom.se>
Date: Wed, 14 Jul 2021 19:08:11 +0200
Subject: rio.c: Automatically set TERM, PAGER and EDITOR

---
 rio.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'rio.c')

diff --git a/rio.c b/rio.c
index 88ef214..a36af2b 100644
--- a/rio.c
+++ b/rio.c
@@ -20,6 +20,8 @@ main()
 	if(!(fdout = open("/var/tmp/r.out", O_RDONLY)))
 		err(1, "open");
 
+	dprintf(fdin, "export TERM=tty43 PAGER=cat EDITOR=ed\n");
+
 	FD_ZERO(&rfds0);
 	FD_ZERO(&rfds1);
 
-- 
cgit v1.2.3