Skip to content

ANSI Color for gray comes up black on MacOS terminal #137

@xemjeff

Description

@xemjeff

When I build and use wren_cli with a dark them on MacOS, the gray color comes up as black, and so is invisible.
This is the color used for the command prompt, and many other items (like braces, dot, parens, etc).

I found that changing the static color value in src/module/repl.wren fixes the problem for me.
But I would like verification from others on MacOS and also LInux (KDE, Gnome).

Here's the simple code change, around line 400 in repl.wren.

  //static gray { "\x1b[30;1m" }
  static gray { "\x1b[38;5;8m" }

If you make the change, you need to regenerate the repl.wren.inc file using :

util/wren_to_c_string.py

Let me know. If others have this problem, I can fork the repo as send over a pull request (PR).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions