ansi-escape Questions
3
Solved
One day, I typed the command
echo "\033[32mHELLOBASE\033[m"
in the gnome bash shell. The terminal showed me a green HELLOBASH string.
I found this interesting. From my experience and serveral te...
Nimitz asked 1/6, 2015 at 15:54
2
I have a source that has ANSI escape code color attached to the strings it spits out. These strings are being sent to the browser. I want to parse these ANSI escape codes with javascript in the bro...
Philoprogenitive asked 14/6, 2012 at 19:33
10
Solved
Here is a snippet that includes my string.
'ls\r\n\x1b[00m\x1b[01;31mexamplefile.zip\x1b[00m\r\n\x1b[01;31m'
The string was returned from an SSH command that I executed. I can't use the string in...
Brosine asked 4/2, 2013 at 19:7
2
Solved
Some programs makes beautiful progressbars and stuff using ANSI escape sequences. That's nice.
What's not nice though is that if i put the output of that kind of program into a file and the...
Whist asked 10/6, 2011 at 13:0
2
Solved
I know a couple...
0 is black
f is white
a is green
example..
os.system("colora 0a")
I was wondering what other ones there were? Thanks!
Rickrickard asked 26/5, 2014 at 0:51
7
Solved
A very simple program that prints 3 lines of output:
console.log('a');
console.log('b');
console.log('c');
Is there a way from program to delete the last line after it has been printed?, i.e.
cons...
Wetnurse asked 4/10, 2015 at 20:45
4
Solved
I try to generate colored console output using ANSI escape codes with the following minimal C# program:
using System;
// test.cs
class foo {
static void Main(string[] args) {
Console.WriteLine(...
Pratique asked 3/12, 2015 at 18:24
22
I have some script that produces output with colors and I need to remove the ANSI codes.
#!/bin/bash
exec > >(tee log) # redirect the output to a file but keep it on stdout
exec 2>&1...
Sheen asked 1/8, 2013 at 15:59
4
Solved
I use (GNU) fmt to format longer texts with nice (‘optimal’) line breaks. However, if the text contains any ANSI colour escape sequences (which are never displayed, and only serve to colour the tex...
Umbelliferous asked 12/7, 2009 at 21:16
40
Solved
I had to change the console background color to white because of eye problems, but the font is gray colored and it makes the messages unreadable. How can I change it?
Twayblade asked 20/3, 2012 at 4:7
6
Solved
I have already looked into ANSI escape codes, but it looks like only underlining is supported.
Do I miss something or is there another option?
If it is not possible, is there something equivalent...
Flyback asked 2/12, 2011 at 13:40
8
Solved
On most terminals it is possible to colorize output using the \033 ANSI escape sequence.
I'm looking for a list of all supported colors and options (like bright and blinking).
As there are probab...
Russian asked 30/1, 2011 at 10:39
4
Solved
I wrote a program which prints a string, which contains ANSI escape sequences to make the text colored. But it doesn't work as expected in the default Windows 10 console, as you can see in the scre...
Imco asked 3/8, 2018 at 22:19
7
Solved
I'm writing a command line tool with Swift and I'm having trouble displaying colors in my shell. I'm using the following code:
println("\033[31;32mhey\033[39;39m")
or even
NSFileHandle.fileHan...
Bentinck asked 6/1, 2015 at 21:59
2
Solved
How do I format text with ANSI escaping?
Like make things italic or bold and maybe strikethrough and super script.
Gracielagracile asked 26/7, 2016 at 16:40
5
I try to use Windows 10 command line to print colored messages on console, but with no success. According to the Log4j 2 documentation, I should add the Jansi jar to my print application and set pr...
Hindmost asked 25/11, 2019 at 7:11
10
Solved
I read about ANSI-C escape codes here. Tried to use it in C/C++ printf/std::cout to colorize the text outputted to console, but without success.
My attempt:
#include <iostream>
#include <c...
Convulsion asked 14/9, 2011 at 10:41
2
Solved
I need to clarify that I am not looking to colorize the log output, and I am only interested in the program outputs that are written to syslog.
So here is the scenario, I have a systemd unit servi...
Prophylaxis asked 17/10, 2018 at 19:25
5
Solved
I have a log file that uses ANSI escape color codes to format the text. The mode is fundamental. There are other answered questions that address this issue but I'm not sure how to apply it to this ...
Tripos asked 30/4, 2014 at 1:44
3
In order to detect if console, correctly sys.stderr or sys.stdout, I was doing the following test:
if hasattr(sys.stderr, "isatty") and sys.stderr.isatty():
if platform.system()=='Windows':
# wi...
Towardly asked 16/9, 2011 at 13:45
14
Solved
I'm building a lightweight version of the ncurses library. So far, it works pretty well with VT100-compatible terminals, but win32 console fails to recognise the \033 code as the beginning of an es...
Cutlery asked 26/5, 2013 at 0:25
2
Solved
I would like Vim to send the name of the currently open file to macOS Terminal.
It is possible to tell the macOS terminal the filename of a currently open document by sending the escape sequence \...
Haplography asked 20/3, 2018 at 3:38
6
Solved
The output from ScalaTest is colored to distinguish different states, but these end up as control codes and
[34m Annoying garbage
Is there any way to convince the Eclipse console to either res...
Halftone asked 9/6, 2011 at 0:9
4
Solved
I am trying to get a colored output in my Netbeans output window.
Ansi-Output in Linux and Windows console works perfectly fine. However not in the IDE.
Is there a way to make this work in Netbea...
Oculomotor asked 17/10, 2014 at 13:21
6
Solved
Have anyone added support for ansi-color in compilation-mode Emacs? If so what property/attribute does the color-writing program have to check for in order to make sure its active terminal supports...
Dejesus asked 15/11, 2012 at 12:41
1 Next >
© 2022 - 2025 — McMap. All rights reserved.