about summary refs log tree commit diff stats
path: root/src/display/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-10-24 09:29:07 +0200
committerbptato <nincsnevem662@gmail.com>2022-10-24 09:29:07 +0200
commit639e56e3377629380d0777a533d1ebd7afd5645a (patch)
tree5c36fea5d37b2f52471360559e5794db845bf059 /src/display/client.nim
parent99d1e817c5db384cd586221f552ede2c256d613b (diff)
downloadchawan-639e56e3377629380d0777a533d1ebd7afd5645a.tar.gz
Reopen tty read-only, refresh containers when switched
Diffstat (limited to 'src/display/client.nim')
-rw-r--r--src/display/client.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/client.nim b/src/display/client.nim
index 78f29f43..54883a53 100644
--- a/src/display/client.nim
+++ b/src/display/client.nim
@@ -73,7 +73,7 @@ proc readPipe(client: Client, ctype: string) =
   buffer.location = newURL("file://-")
   client.pager.addBuffer(buffer)
   #TODO is this portable at all?
-  if reopen(stdin, "/dev/tty", fmReadWrite):
+  if reopen(stdin, "/dev/tty", fmRead):
     buffer.setupBuffer()
   else:
     buffer.load()