Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#302·voltron

Why call os.system('clear') ?

Author: erezshCreated Mar 3, 2024Updated Mar 3, 2024

In this line of code, you use a system call to clear the screen: https://github.com/snare/voltron/blob/d9fef0bb4073d434c54415d55a1b5da92cb84696/voltron/view.py#L270

However, I tested it on windows, and using blessed works just fine :

python
term = blessed.Terminal()
print(term.clear)

Source: snare/voltron

View original on GitHubView discussion on GitHub