Command-line / Shortcut-key to clear Thonny's shell

See original GitHub issue

Original 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
aivarannamaacommented, Jan 1, 2019

Did you know that in the meanwhile you can also right-click in the shell and select “Clear” ?

0reactions
aivarannamaacommented, Jan 1, 2019

Original changes by Aivar Annamaa (Bitbucket: aivarannamaa GitHub: aivarannamaa ).


  • added labels: duplicate
  • changed status to closed
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found