Command-line / Shortcut-key to clear Thonny's shell
See original GitHub issueOriginal report by Anonymous.
Hi devs,
First, I’d like to congratulate you for this little gem of a Python IDE! Great work!
I’m using Thonny ver 2.1.13 to teach Python to undergrads at my university. The issue that I’d like to report with Thonny here is related to issue #99. Basically, Thonny needs a command or a shortcut key to clear the shell screen when needed. Issue #99 was solved by adding a menu command under the menu Edit that clears the screen. However in most Python IDEs it’s possible to quickly clear the shell using Ctrl+L, or by adding these lines to your code :
import os
os.system('cls') # on windows
It would be great if there’s something similar in Thonny making it more universal and similar to other IDEs.
Thanking you so much in advance for your consideration.
Regards,
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How to clear Python shell?
The commands used to clear the terminal or Python shell are cls and clear. In Windows import os os.system('CLS'). In Linux import os...
Read more >How to clear Python shell
How to clear Python shell · Import os · # Type · os.system('clear').
Read more >Any way to clear python's IDLE window?
Type cls and hit enter to clear the command prompt/ windows shell. Share.
Read more >How to clear screen in python?
Method 1: Clear screen in Python using cls. You can simply “cls” to clear the screen in windows. Python3. Python3 ...
Read more >[Simple Steps] How to Clear Python Interpreter Console ...
You can clear the Python interpreter console screen using a system call. System calls to clear the console: For the window system, cls...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Did you know that in the meanwhile you can also right-click in the shell and select “Clear” ?
Original changes by Aivar Annamaa (Bitbucket: aivarannamaa GitHub: aivarannamaa ).