Skip to content

Support some ANSI escape codes in pyexec repl #19702

Description

@VynDragon

Description

Support using some ANSI escape codes in the REPL in shared/runtime/pyexec.c, , like Ctrl+Left arrow (\[5D) to allow navigating the command line faster.

Not sure if the best is to interpret them, like this ansi_handle, or pass them through unchanged.

Code Size

Like a whole function and a dozen defines, maybe 2 functions. appear likely to be easy to toggle from mpconfig.h.

Implementation

I hope the MicroPython maintainers or community will implement this feature, I intend to implement this feature and would submit a Pull Request if desirable

Code of Conduct

Yes, I agree

Activity

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

    enhancementFeature requests, new feature implementations

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions