G
G
gylah-u2021-11-20 17:19:29
Command line
gylah-u, 2021-11-20 17:19:29

Is it possible to output any color to a Python terminal?

Imagine we have a color #a0eaf8, how can I display any text, for example, Hello, World!colored in this color? Yes, it won't work with all terminals, but how do you do it using Python?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
gylah-u, 2021-11-20
@gylah-u

I decided with the help of ANSI colors, it turns out that it is possible not only using presets, but also using RGB

A
Alexander, 2021-11-20
@shabelski89

Google - python colorama

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question