Skip to content

pyrepl loses input and mis-positions cursor when F2 is pressed #124874

Open
@godlygeek

Description

@godlygeek

Bug report

Bug description:

image
image
image

This is bad for 2 different reasons:

  1. pyrepl loses track of the cursor, thinking it's in the first column when it's actually in the middle of the screen somewhere, so future screen drawing operations have unexpected results
  2. on top of that, anything you were in the middle of typing when you pressed F2 is discarded, so if you wanted to access the history to copy something out and paste it into the command you're writing, oops, it's gone

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixestopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions