Questions tagged [ansi-colors]
109 questions
-1
votes
1 answer
Why colored text is not shown in terminal? Python
I'm trying to print some colored text, however every method I tried failed, the Interpreter just prints the color codes as well with the text, it does not change the color any ideas why?
I am using Python 3.6.8 on a Windows 10 Pro computer
Here is a…
![](../../users/profiles/10798503.webp)
yarin Cohen
- 612
- 5
- 16
-1
votes
1 answer
How to use escape sequences
I am trying to get escape sequences to work in a Go application. Specifically the code to move the cursor. fmt.Printf("\033[3;5H")
What should I be printing / writing to in order to make this work? Or am I approaching this the wrong way entirely?…
-1
votes
1 answer
Delphi XE3 - Remove Ansi Code / Color from string
I'm struggling with dealing with Ansi code strings. I'm getting the [32m, [37m, [K etc chars.
Is there a quicker way to eliminate/strip the ansi codes from the strings I get rather than doing it with the loop through chars searching for the…
![](../../users/profiles/1786516.webp)
That Marc
- 1,074
- 3
- 17
- 38
-2
votes
1 answer
How to change colour of variable storing a string in C
I'm programming in C and I've read a lot about how to change the colour of a string. But I'm wondering how to change the colour of a string when it is stored as a variable. For Instance:
printf ("\e[1;31m Hello \e[0m\n");
This would change the…
![](../../users/profiles/6849449.webp)
jim
- 718
- 2
- 9
- 26