about summary refs log tree commit diff stats
path: root/src/io/term.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/term.nim')
-rw-r--r--src/io/term.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/io/term.nim b/src/io/term.nim
index e80eff29..0406907d 100644
--- a/src/io/term.nim
+++ b/src/io/term.nim
@@ -239,8 +239,9 @@ proc processFormat*(term: Terminal, format: var Format, cellf: Format): string =
 
   format = cellf
 
-proc updateWindow*(term: Terminal) =
-  term.attrs = getWindowAttributes(term.outfile)
+proc windowChange*(term: Terminal, attrs: WindowAttributes) =
+  term.attrs = attrs
+  term.cleared = false
 
 proc getCursorPos(term: Terminal): (int, int) =
   term.write(CSI("6n"))