diff options
author | bptato <nincsnevem662@gmail.com> | 2022-10-24 09:29:07 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-10-24 09:29:07 +0200 |
commit | 639e56e3377629380d0777a533d1ebd7afd5645a (patch) | |
tree | 5c36fea5d37b2f52471360559e5794db845bf059 /src/display/client.nim | |
parent | 99d1e817c5db384cd586221f552ede2c256d613b (diff) | |
download | chawan-639e56e3377629380d0777a533d1ebd7afd5645a.tar.gz |
Reopen tty read-only, refresh containers when switched
Diffstat (limited to 'src/display/client.nim')
-rw-r--r-- | src/display/client.nim | 2 |
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() |