about summary refs log tree commit diff stats
path: root/src/display
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-07 15:03:37 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-07 15:03:37 +0100
commiteb61a176754a565a5c53562993897388fa2d260c (patch)
tree7c35d5415d71ec92092bc99efa7d00f4cfdaadc3 /src/display
parent38838a5fc3a3ba52982dc005013a7cca80f8c927 (diff)
downloadchawan-eb61a176754a565a5c53562993897388fa2d260c.tar.gz
Add force-clear
Diffstat (limited to 'src/display')
-rw-r--r--src/display/term.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/term.nim b/src/display/term.nim
index 899cd561..eb061d99 100644
--- a/src/display/term.nim
+++ b/src/display/term.nim
@@ -339,7 +339,7 @@ proc writeGrid*(term: Terminal, grid: FixedGrid, x = 0, y = 0) =
 
 proc outputGrid*(term: Terminal) =
   term.outfile.write(term.resetFormat())
-  if not term.cleared:
+  if term.config.forceclear or not term.cleared:
     term.outfile.write(term.generateFullOutput(term.canvas))
     term.cleared = true
   else: