-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Labels
Description
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.
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 :-)