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

Nested styles? #35

Open
jwalton opened this issue Apr 5, 2021 · 1 comment
Open

Nested styles? #35

jwalton opened this issue Apr 5, 2021 · 1 comment

Comments

@jwalton
Copy link

jwalton commented Apr 5, 2021

The README.md claims this supports nested styles, but I didn't see any examples. I tried:

	colorful := termenv.String("colorful").Foreground(termenv.ANSIRed)
	hello := termenv.String("Hello", colorful.String(), "world").Foreground(termenv.ANSIBlue).String()
	fmt.Println(hello)

But this printed something blue then red then white, instead of the expected blue then red then blue.

(BTW - slick library. I wish I'd found this before I ported all of chalk to go. :P)

@malko
Copy link

malko commented Apr 13, 2024

is there any plan on solving this issue in a near future ?

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

2 participants