boon

unix terminal framework
git clone https://git.ce9e.org/boon.git

commit
99c519334c82023fb89de530e4d964d3a4ce2c09
parent
df85dc5246e262840e4464370b66351fe1bd2f25
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-07-13 05:16
fix: do not clear last line

Diffstat

M boon.py 5 +++--

1 files changed, 3 insertions, 2 deletions


diff --git a/boon.py b/boon.py

@@ -113,8 +113,9 @@ class App:
  113   113 			sys.stdout.write(line)
  114   114 
  115   115 		# clear rest of screen
  116    -1 		move(len(lines), 0)
  117    -1 		sys.stdout.write(get_cap('ed'))
   -1   116 		if len(lines) < self.rows:
   -1   117 			move(len(lines), 0)
   -1   118 			sys.stdout.write(get_cap('ed'))
  118   119 		sys.stdout.flush()
  119   120 
  120   121 		self.old_lines = lines