From 29630ac92e6303e8196aef2eb32092e1e36d5252 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 2 Jun 2020 19:59:28 +0200 Subject: term: set an initial TIOCSWINSZ right after opening the pty Since foot is pretty aggressive about spawning the client early, it was possible for a fast client to read a 0x0 terminal size. Not all clients coped well. Closes #20. --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index c5113e95..5aca097c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,8 @@ * Selection of double-width characters. It is no longer possible to select half of a double-width character. * Draw hollow block cursor on top of character. +* Set an initial `TIOCSWINSZ`. This ensures clients never reads a + `0x0` terminal size (https://codeberg.org/dnkl/foot/issues/20). ### Security -- cgit v1.3