Skip to content

Commit

Permalink
use Terminal().clear instead of system("clear")
Browse files Browse the repository at this point in the history
  • Loading branch information
sohsatoh committed Sep 11, 2024
1 parent 037d30b commit 05c84d6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions voltron/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,6 @@ def cleanup(self):
if cursor:
cursor.show()

def clear(self):
# blessed's clear doesn't work properly on windaz
# maybe figure out the right way to do it some time
os.system('clear')

def render(self, results):
self.do_render()

Expand All @@ -286,7 +281,7 @@ def do_render(self, error=None):

if self.body != self.last_body:
# Clear the screen
self.clear()
print(self.t.clear)

# Print the header, body and footer
try:
Expand Down

0 comments on commit 05c84d6

Please sign in to comment.