@@ -425,14 +425,19 @@ renderWidth = do iw <- getWidth
426iRender :: Doc a -> Idris (SimpleDoc a)
426iRender :: Doc a -> Idris (SimpleDoc a)
427iRender d = do w <- getWidth
427iRender d = do w <- getWidth
429+ let ideSlave = case idris_outputmode ist of
428 case w of
432 case w of
429 InfinitelyWide -> return $ renderPretty 1.0 1000000000 d
433 InfinitelyWide -> return $ renderPretty 1.0 1000000000 d
430 ColsWide n -> return $
434 ColsWide n -> return $
432 then renderPretty 1.0 1000000000 d
436 then renderPretty 1.0 1000000000 d
433 else renderPretty 0.8 n d
437 else renderPretty 0.8 n d
438+ AutomaticWidth | ideSlave -> return $ renderPretty 1.0 1000000000 d
434− AutomaticWidth -> do width <- runIO getScreenWidth
439+ | otherwise -> do width <- runIO getScreenWidth
435− return $ renderPretty 0.8 width d
440+ return $ renderPretty 0.8 width d
437ihPrintResult :: Handle -> String -> Idris ()
442ihPrintResult :: Handle -> String -> Idris ()
438ihPrintResult h s = do i <- getIState
443ihPrintResult h s = do i <- getIState