Skip to content

Conversation

caarlos0
Copy link
Member

we do use stdout to print stuff.

we do use stdout to print stuff.
@caarlos0 caarlos0 requested review from meowgorithm and Copilot June 19, 2025 16:20
@caarlos0 caarlos0 self-assigned this Jun 19, 2025
@caarlos0 caarlos0 added the bug Something isn't working label Jun 19, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the logic for determining the terminal's background color by checking stdout instead of stderr.

  • Update the call to lipgloss.HasDarkBackground to use os.Stdout, ensuring theme colors match the actual output stream.
Comments suppressed due to low confidence (1)

theme.go:95

  • [nitpick] Using stdout to assess the terminal's background is a good update; please confirm that using os.Stdin as the first argument is intentional and aligns with your overall terminal input/output handling.
		isDark = lipgloss.HasDarkBackground(os.Stdin, os.Stdout)

Copy link
Member

@meowgorithm meowgorithm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Makes sense.

@caarlos0 caarlos0 merged commit b3ee675 into main Jun 19, 2025
18 checks passed
@caarlos0 caarlos0 deleted the check branch June 19, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants