From f8519c31ce431e08ad4319cf851ec933b480da22 Mon Sep 17 00:00:00 2001 From: Jonathan Lamothe Date: Thu, 5 Sep 2019 12:22:25 -0400 Subject: [PATCH] fit report to screen --- src/Mtlstats/Control.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mtlstats/Control.hs b/src/Mtlstats/Control.hs index 0ce5333..43a8e72 100644 --- a/src/Mtlstats/Control.hs +++ b/src/Mtlstats/Control.hs @@ -132,7 +132,8 @@ dispatch s = case s^.progMode of | otherwise -> Controller { drawController = \s -> do - C.drawString $ report 72 s + (_, cols) <- C.windowSize + C.drawString $ report (fromInteger $ pred cols) s return C.CursorInvisible , handleController = \e -> do when