Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESS Buffer keeps changing font colour. #1199

Open
kdschneider opened this issue May 18, 2022 · 4 comments
Open

ESS Buffer keeps changing font colour. #1199

kdschneider opened this issue May 18, 2022 · 4 comments

Comments

@kdschneider
Copy link

Problem

The text in the ESS buffer keeps changing to a colour similar to the background making it hard/impossible to read it.

When changing the theme, the text colour gets changed to the correct value, but any new input is wrong again. I have to select text to be able to read it.

@lionel-
Copy link
Member

lionel- commented May 18, 2022

Duplicate of #1193?

@kdschneider
Copy link
Author

Seems to be a similar problem, yes. I could fix my issue for the most part by not setting ess-font-lock-keyword, but the tibble problem persists.

I will check #1193. Sry for the duplicate.

@Fuco1
Copy link

Fuco1 commented Jun 1, 2022

Just happened to me. Emacs 28 now uses different system for coloring output that contains ansi sequences. The dark foreground color comes from the face ansi-color-bright-black. If your background is dark, setting this to a white-ish color will at least enable you to read the text. But fontification of say comments printed by tibble no longer works because it simply overwrites any existing faces from font-lock.

@Fuco1
Copy link

Fuco1 commented Jun 1, 2022

Simplest fix seems to be to run (setq-local ansi-color-for-comint-mode 'filter) in the comint buffer. You can add this to 'inferior-ess-mode-hook, my config is

    (defun my-inferior-ess-init ()
      (setq-local ansi-color-for-comint-mode 'filter)
      (smartparens-mode 1))
    (add-hook 'inferior-ess-mode-hook 'my-inferior-ess-init)

paskn added a commit to paskn/.dotfiles that referenced this issue Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants