Nov-04-2022, 11:03 AM
(Nov-03-2022, 05:22 PM)snippsat Wrote:(Nov-03-2022, 04:15 PM)BliepMonster Wrote: I tried to use the colorama, but it just said the same as the ANSII.It want work because you usecmd
,a better shell like cmder would work.
Shoul use Rich ✨ it's in a league of own when it come to color in Terminal for Python.
Rich also work in cmd.
from rich import print print("[red]Python Forum[/red]") print("[bold blue]Hello world[/bold blue]!") d = { "bool1": True, "bool2": False, "number": 123.45, "string": "Hello!", "dict": {"key": "value"}, "list": [1, 2, 3], "class": type(1), } print(d)cmd:
cmder:
I installed rich, and copy pasted your command, and it doesnt show the colors.
Output:Python Forum
Hello world!
{
'bool1': True,
'bool2': False,
'number': 123.45,
'string': 'Hello!',
'dict': {'key': 'value'},
'list': [1, 2, 3],
'class': <class 'int'>
}
The only stupid person in the world, is the person that doesn't ask questions.
-Someone smart
-Someone smart