Skip to content

Prevent unused input characters from spewing into REPL #714

@tannewt

Description

@tannewt

To reproduce:

  1. Write a file with an infinite loop but no input calls.
  2. Type a bunch of characters besides ctrl-c.
  3. Type ctrl-c to break out of the loop.
  4. The first of a bunch of characters satisfies the any keypress to enter repl and then the repl gets the rest.

Instead, we should clear the input buffer after main finishes and before we wait for another character.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions