From 639e56e3377629380d0777a533d1ebd7afd5645a Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 24 Oct 2022 09:29:07 +0200 Subject: Reopen tty read-only, refresh containers when switched --- src/display/client.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/display/client.nim') 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() -- cgit 1.4.1-2-gfad0