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

modifiers not working correctly? #1

Closed
tcurdt opened this issue Jul 28, 2024 · 1 comment · Fixed by #2
Closed

modifiers not working correctly? #1

tcurdt opened this issue Jul 28, 2024 · 1 comment · Fixed by #2

Comments

@tcurdt
Copy link

tcurdt commented Jul 28, 2024

This works as expected:

echo -e "\033[4mfoo\033[0mbar"

But this does not give the same result:

	typed := color.NewStyle(nil, nil, color.Underline).Sprint
	completed := color.NewStyle(nil, nil).Sprint

	fmt.Print(typed("foo"))
	fmt.Println(completed("bar"))

What am I missing here?

@MarvinJWendt MarvinJWendt linked a pull request Aug 2, 2024 that will close this issue
@MarvinJWendt
Copy link
Member

Hi, thanks for reporting. It was indeed a bug.

Quick note: color is unreleased and work in progress. Feel free to still use it, but there might be some small breaking changes before the first release.

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

Successfully merging a pull request may close this issue.

2 participants