Skip to content

Support cursor motion ANSI control sequences in Console #14942

Closed

Description

@jucor

Dear Rstudio team, in particular @gtritchie who is the master of all things Console and ANSI characters

While using pyMC with reticulate in Rstudio, I have discovered that the progress bars on long operations were severely misbehaving, generating so much output that it even brought Rstudio to its knees due to the load on the console and the Rmarkdown inline output.
I filed bug-reports:

After diving deep into the source, I realise that this is down to cursor movement ANSI control sequences not being supported in the Console implementation (thanks @gtritchie for the comments):

* such as cursor movement are ignored.

[Separately, while investigating this, I suspect there's also a bug there, see #14941 ]

Having the Console support Cursor motions would fix all 3 downstream bugs above, and, more importantly, would allow the proper in-Rstudio use of all tools that use the Rich library.

I realise this is a shot in the dark, but that would be terrific. Thanks for considering!

Activity

  1. added
    new
    on Jul 8, 2024
  2. ronblum commented on Jul 12, 2024

    @ronblum
    Contributor

    @jucor Thanks for the enhancement request! Agreed, it is a shot in the dark. But @gtritchie, the master as you say, could probably explain this far better than I could.

  3. added and removed
    new
    on Jul 12, 2024
  4. added this to the Kousa Dogwood milestone on Aug 2, 2024
  5. self-assigned this
    on Aug 2, 2024
  6. ronblum commented on Sep 11, 2024

    @ronblum
    Contributor

    Verified in RStudio Desktop Pro 2024.10.0-daily+131.pro1, similar to #14941.

  7. jucor commented on Sep 11, 2024

    @jucor
    Author

    Amazing, thank you very much @kevinushey and @ronblum !!

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions