Skip to content

[bug] color in emacs/ess #1450

@r2evans

Description

@r2evans

Prework

  • I understand and agree to help guide.
  • I understand and agree to contributing guide.
  • New features take time and effort to create, and they take even more effort to maintain. So if the purpose of the feature is to resolve a struggle you are encountering personally, please consider first posting a "trouble" or "other" issue so we can discuss your use case and search for existing solutions first.

Bug

In emacs/ess, the output is colored (i.e., red in errors) but the ansi color sequence is not reset, so the emacs/ess prompt stays colored.

Image

The cli::style_reset object (printed, not when called as a function) remedies the color problem.

Any chance you can augment whatever cli:: stuff is being done so that it resets the terminal? I don't know if RStudio IDE just hard-codes it all the time, but emacs/ess has this issue.

(A clear workaround is to use Sys.setenv(NO_COLOR="!") per https://cli.r-lib.org/reference/faq.html, though the defeats some benefit of colors :-)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions