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

256-Color and RGB not working #20

Closed
arsalahmed786 opened this issue Aug 7, 2020 · 12 comments
Closed

256-Color and RGB not working #20

arsalahmed786 opened this issue Aug 7, 2020 · 12 comments
Assignees
Labels
bug Something isn't working question Further information is requested windows windows ENV

Comments

@arsalahmed786
Copy link

Hi, i tried your example it print message only in default gray color.

@inhere
Copy link
Member

inhere commented Aug 7, 2020

hi, Could you please provide us with your operating environment? and more information, tks

@arsalahmed786
Copy link
Author

What do you mean? Sorry i'm not programmer but i know basics. I have my tool sources in golang and now how to build how i'm trying to change color but i can only use

color.Bold
color.Black
color.White
color.Gray
color.Red
color.Green
color.Yellow
color.Blue
color.Magenta
color.Cyan

@inhere
Copy link
Member

inhere commented Aug 12, 2020

oh,hi

Please paste your code

@inhere inhere self-assigned this Aug 12, 2020
@arsalahmed786
Copy link
Author

oh,hi

Please paste your code

I just used your example, I'm using windows 10, Git for build it into .go and Visual studio code for edit.

@inhere
Copy link
Member

inhere commented Aug 12, 2020

hi, your local package version is latest?

@arsalahmed786
Copy link
Author

which version Golang? or Git? OR your package? and how to check. And as i told you i'm not developer could you tell me how can i change. By the way thanks for great package and helping me.

@inhere
Copy link
Member

inhere commented Aug 12, 2020

has go.mod file? content should contains like github.com/gookit/color v1.2.7. the v1.2.7 is version of gookit/color

@arsalahmed786
Copy link
Author

I use Import "github.com/gookit/color"

@arsalahmed786
Copy link
Author

I copy paste your example and build it but i don't see custom colors in windows cmd. i'm using windows 10

@inhere
Copy link
Member

inhere commented Sep 2, 2020

Which example file?

@inhere inhere added the question Further information is requested label Sep 2, 2020
@arsalahmed786
Copy link
Author

I can't use 256 or hex or RGB color code.

I can only use these colors.
color.Bold
color.Black
color.White
color.Gray
color.Red
color.Green
color.Yellow
color.Blue
color.Magenta
color.Cyan

If i use this
color.HEX("#1976D2").Println("blue-darken")
color.HEX("#D50000", true).Println("red-accent. use HEX style")

It will print text in default gray color.

@inhere inhere added the windows windows ENV label Sep 12, 2020
@inhere
Copy link
Member

inhere commented Sep 13, 2020

please update to latest version v1.3.0

@inhere inhere closed this as completed Sep 13, 2020
@inhere inhere added the bug Something isn't working label Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested windows windows ENV
Projects
None yet
Development

No branches or pull requests

2 participants