diff options
author | tv <tv@krebsco.de> | 2022-05-17 23:37:36 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2022-05-17 23:37:36 +0200 |
commit | fc6105a5e7d1e3a07bf07ea85e7902dd8e9fc849 (patch) | |
tree | 36e5cd5d7106b5a3068630704c7623935528cb4f | |
parent | f4cdf79bd4a75e9eafe68b9a908f4cc68682b7ef (diff) |
query term size before start scanning
This works around an issue causing the pager to hang when there is input
before the terminal size could be determined. The root cause has yet to
be found.
-rw-r--r-- | src/main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.hs b/src/main.hs index 816aa7c..4b78f49 100644 --- a/src/main.hs +++ b/src/main.hs @@ -247,14 +247,14 @@ main = do installHandlers signalHandlers + winchHandler i putEvent + threadIds <- mapM forkIO [ forever $ scan i >>= putEvent . EScan ] - winchHandler i putEvent - result <- run o getEvent q1 mapM_ killThread threadIds |