This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Clearing the screen of IDLE interactive mode in Windows
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.10
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: Sanmitha Sadhishkumar, ezio.melotti, terry.reedy
Priority: normal Keywords:

Created on 2020-05-21 09:45 by Sanmitha Sadhishkumar, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Error_clearing screen Sanmitha Sadhishkumar, 2020-05-21 09:48 The description is given in the comment.
Messages (3)
msg369513 - (view) Author: Sanmitha (Sanmitha Sadhishkumar) Date: 2020-05-21 09:48
Clearing the screen of IDLE interactive mode using the following code:
import os
os.system("cls")
It doesn't clear the screen in Windows. Actually these two statements have no effect at all.
msg369551 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2020-05-21 23:20
The cls command only works when Python is executed within a Windows terminal.  In other contexts (such as IDLE), the command doesn't work.
msg369566 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-05-22 08:20
3.5 and 3.6 only get security fixes.

#6143 proposes to add special mechanism to clear Shell.  It is a low priority for me as I very seldom want to, or if a editor is open, one can close the shell and start over when running the editor file.

Clear an editor with select-all (^A for me), backspace or del or control-X (to save to clipboard).
History
Date User Action Args
2022-04-11 14:59:31adminsetgithub: 84888
2020-05-22 08:20:54terry.reedysetmessages: + msg369566
versions: + Python 3.10, - Python 3.5, Python 3.6, Python 3.7, Python 3.8
2020-05-21 23:20:06ezio.melottisetstatus: open -> closed

type: performance -> behavior
assignee: terry.reedy -> ezio.melotti

nosy: + ezio.melotti
messages: + msg369551
resolution: not a bug
stage: resolved
2020-05-21 10:25:19ezio.melottilinkissue40708 superseder
2020-05-21 09:48:14Sanmitha Sadhishkumarsetfiles: + Error_clearing screen

messages: + msg369513
2020-05-21 09:45:36Sanmitha Sadhishkumarcreate