fix a tui bug
This commit is contained in:
@@ -324,10 +324,10 @@ renderWatchDashboard renderStateRef projectRoot config watchSettings serverStatu
|
|||||||
border = "+" ++ replicate (cols - 2) '-' ++ "+"
|
border = "+" ++ replicate (cols - 2) '-' ++ "+"
|
||||||
infoRows =
|
infoRows =
|
||||||
[ dashboardRow cols ("Project : " ++ projectRoot),
|
[ dashboardRow cols ("Project : " ++ projectRoot),
|
||||||
dashboardRow cols ("Output : " ++ destinationDirectory config),
|
-- dashboardRow cols ("Output : " ++ destinationDirectory config),
|
||||||
dashboardRow cols ("Preview : " ++ renderServerStatus watchSettings serverStatus),
|
dashboardRow cols ("Preview : " ++ renderServerStatus watchSettings serverStatus),
|
||||||
dashboardRow cols "Watch : notes/, reference.bib, math-macros.md, images/ (optional)",
|
-- dashboardRow cols "Watch : notes/, reference.bib, math-macros.md, images/ (optional)",
|
||||||
dashboardRow cols ("Change : " ++ dashboardLastChange dashboard),
|
-- dashboardRow cols ("Change : " ++ dashboardLastChange dashboard),
|
||||||
dashboardRow cols ("Build : " ++ dashboardLastBuild dashboard)
|
dashboardRow cols ("Build : " ++ dashboardLastBuild dashboard)
|
||||||
]
|
]
|
||||||
headerRows =
|
headerRows =
|
||||||
@@ -345,7 +345,7 @@ renderWatchDashboard renderStateRef projectRoot config watchSettings serverStatu
|
|||||||
takeLast availableLogRows (dashboardLogLines dashboard)
|
takeLast availableLogRows (dashboardLogLines dashboard)
|
||||||
screenRows = take rows (headerRows ++ logRows ++ footerRows)
|
screenRows = take rows (headerRows ++ logRows ++ footerRows)
|
||||||
putStr "\ESC[2J\ESC[H"
|
putStr "\ESC[2J\ESC[H"
|
||||||
putStr (unlines screenRows)
|
putStr (intercalate "\n" screenRows)
|
||||||
hFlush stdout
|
hFlush stdout
|
||||||
writeIORef renderStateRef currentRenderState
|
writeIORef renderStateRef currentRenderState
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user