Skip to content

CLI text color forced to white? #3401

Closed

Description

@isen-ng

Description

I'm not exactly sure if this is a mono issue or a paket issue (I've only used mono for paket).
But all the console output from paket and paket bootstrapper are all forced to white. It should have simply used the terminals default text color.

This is because I use light the light theme in my terminal. With white on white, I don't see any text without highlighting it.

Repro steps

  1. On MacOS, download and install JetBrains Rider (my current IDE of choice).
  2. Select the light theme
  3. Install mono if you haven't, brew install mono
  4. Download paket.bootstrapper.exe, wget https://github.com/fsprojects/Paket/releases/download/5.181.1/paket.bootstrapper.exe
  5. Run the bootstrapper, mono paket.bootstrapper.exe
  6. All the output is white in color against a white background

Expected behavior

Text should show up in terminal default color.

Actual behavior

Text color is forced to white without consideration for the background color of the terminal

Known workarounds

Have to use mouse to highlight the text for it to show up

Activity

  1. github-actions commented on Aug 29, 2026

    @github-actions
    Contributor

    🤖 This is an automated response from Repo Assist.

    I traced this to src/Paket.Bootstrapper/ConsoleImpl.cs's WriteConsoleCore, which unconditionally assigns Console.ForegroundColor even when writing with the current color (e.g. WriteInfo). On some terminals (notably Mono), this forces an explicit ANSI color code, overriding your terminal's default/theme foreground color. I've opened a draft fix that only touches Console.ForegroundColor when the color actually needs to change, matching the pattern already used elsewhere in Paket's F# logging code.

    PR: (see linked pull request)

    Generated by 🌈 Repo Assist, see workflow run. Learn more.
    Comment /repo-assist to run again

    Add this agentic workflow to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/repo-assist.md@ae8d551f07c7ed7619f8c58c7bb4c3ac89395d38
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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