Skip to content

Support a Clear Screen command in IDLE #139641

Closed as duplicate
Closed as duplicate

Description

@gryphonB-2

Bug report

Bug description:

As we all know, there is no way to clear input/output from the Idle Shell.
Unlike in a terminal, which has always had this facility.
I am currently working through Learning Python, 5ed, co 2013, where he complains about the same thing.
I would guess that Idle is a decade older than that.
I would suggest that, after 20 years , Idle should be at least as capable as a terminal, and that after 20 years the lack of a 'clear' command constitutes a bug, not a feature request.
Cheers

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Activity

  1. added
    type-featureA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directory
    and removed
    type-bugAn unexpected behavior, bug, or error
    on Oct 6, 2025
  2. picnixz commented on Oct 6, 2025

    @picnixz
    Member

    Even if it's decades later, we would still consider it a feature request first as per our feature policy. Sorry.

  3. changed the title [-]Idle Clear Screen command does not exist[/-] [+]Support a Clear Screen command in IDLE[/+] on Oct 6, 2025
  4. picnixz commented on Oct 6, 2025

    @picnixz
    Member

    Actually, this is a duplicate of #50393.

  5. terryjreedy commented on Oct 6, 2025

    @terryjreedy
    Member

    @gryphonB-2 There has never been agreement on precisely what to do. Feel free to add a comment to the original issue. Prompted by this duplicate, I just added a comment on the separate solutions that I think would handle most use cases.

  6. terryjreedy commented on Oct 6, 2025

    @terryjreedy
    Member

    For IDLE (see PEP-434), bug versus feature usually makes no difference w/r/to backports. The main difference is that what to do for bugs is usually clear: fix the behavior, or possible the doc. The main problem is how to do so. Features, like this one, are much more likely to get hung up on the details of what to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-IDLEtype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions