Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
113 views
in Technique[技术] by (71.8m points)

c - What is the "best" way to set colors in the terminal?

sorry if it's a duplicate but i couldn't find the answer. I'm quite novice in programming but i want to put some colors in terminal on some of my functions, i found out printf family function could set up colors with '33[..m' or 'x1B[..m' but : -Is there other ways to do it? -if so : Is there a way which is advised for the standard portability? (for exemple are the printf's previous two syntax i mentionned working on same systems?)

question from:https://stackoverflow.com/questions/65643377/what-is-the-best-way-to-set-colors-in-the-terminal

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...