ansi-colors 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
9
Solved
gcc (or other compilers) often generate huge text output and it's very difficult to see where the error is or miss warnings. I've done some search but havn't found a clean simple solution to color ...
Bildungsroman asked 17/2, 2013 at 15:56
1
I am using Slack and Hubot to run a few commands on our servers, the stdout and stderr of these commands is uploaded to a channel as a snippet.
Some of these commands return colour outputs and are...
Charis asked 29/10, 2019 at 9:44
3
how can I use more colors in console while using WriteConsoleOutput and WriteConsoleOutputAttribute?
I found you can write ANSI colors using Console.Write, but how can I do this using those two met...
Snaggy asked 13/5, 2020 at 16:31
7
Solved
The code is:
let redColor = "\u{001B}[0;31m"
var message = "Some Message"
print(redColor + message) //This doesn't work
print("\(redColor)\(message)") //This also doesn't work
and the output wou...
Convery asked 14/11, 2016 at 7:23
3
Solved
In PowerShell, is there a way to preserve the ANSI control codes used to convey color information to the console when assigning a program's output to a variable?
For instance, I use Test Kitchen wh...
Empyrean asked 16/5, 2022 at 18:26
65
How do I output colored text to the terminal in Python?
Digger asked 13/11, 2008 at 18:58
4
In my Logback configuration I have the following lines:
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%highlight(...) %msg%n</patt...
Colner asked 25/6, 2015 at 9:44
3
Solved
In Python 2, I’m using str.format() to align a bunch of columns of text I’m printing to a terminal. Basically, it’s a table, but I’m not printing any borders or anything—it’s simply rows of text, a...
Gunflint asked 3/1, 2013 at 14:23
2
Meat
In C or C++ is there any way to read the color palette RGB values directly? Especially interesting is the extended color space used by xterm (and others) to define up to 256 terminal colors.
...
Immixture asked 7/10, 2013 at 17:21
4
Solved
I would like to query and store the current terminal color pair in BASH e.g.:
#!/bin/bash
#some ANSI colour escape sequences
red="\033[0;31m"
grn="\033[0;32m"
blu="\033[0;34m"
def="\033[0;00m" #...
Svelte asked 22/1, 2015 at 19:4
1
Solved
With the crayon package, one can create colored strings:
library(crayon)
dat <- data.frame(X=c(yellow("foobar"), green("baz")), Y = cyan("qux"))
Here is the encode...
Gladdie asked 22/7, 2021 at 17:30
1
Solved
I use fmt based logger with optionally color prints - which relies on ANSI color commands.
Unfortunately on Windows 10 it is disabled by default. I know how to enable it but I still want to find ou...
Dustin asked 16/9, 2020 at 4:11
3
Solved
Any idea on how to use powershell to color my output on Jenkins ? I have already installed AnsiColor plugin on my Jenkins and I have set the job to use AnsiColor. The only problem is how to let my ...
Dopester asked 2/9, 2016 at 15:42
2
Can't quite find an answer to this, can anyone state a fix.
I have a library jar i'm building and using logback (logabck 1.2.3, jansi 1.16) and groovy, and i'm trying to colour code the log displ...
Gaspard asked 21/11, 2017 at 16:49
4
Solved
I'm unsure of what to do with declarative jenkins pipeline.
Following the example here:
https://github.com/jenkinsci/ansicolor-plugin
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm...
Waggish asked 16/5, 2017 at 13:55
2
Solved
I love the grc colorizer for the terminal. However I have to explicitly prefix anything I want colorized with:
grc --config=conf.mine
Is there any way to have it automatically applied to everyth...
Iroquois asked 10/8, 2012 at 22:47
2
My question is in general shell scripting with ansi colors but for reference I am using an Apple Mac OS X 10.9 Mavericks. I use "iTerm" terminal app as my default terminal but also checked with the...
Undercharge asked 26/11, 2014 at 21:37
2
Solved
I'm trying to print bold text from the following Makefile :
printf-bold-1:
@printf "normal text - \e[1mbold text\e[0m"
But, escape sequences are printed as-is, so when running make printf-bold-...
Swimming asked 4/1, 2019 at 13:34
4
Solved
I'm trying to get 256 colors in the fantastic ConEmu-Maximus5 console.
Update: Now it only shows 8 colors. I know because '$tput colors' output is '8'
I have followed the instructions and activat...
Getter asked 16/10, 2012 at 11:10
6
I have installed the ANSI-color plugin for Jenkins.
In the Jobs I have activated that plugin with the default profile 'xterm'.
I cannot figure out how to colorize the output of the Console Log whe...
Jaggery asked 14/9, 2012 at 16:35
3
Solved
I have this extremely simple powershell script that prepends each line with a number.
function number
{
$i = 0;
foreach($line in $input)
{
[string]$i + ":" + $line
++$i
}
}
I woul...
Desalvo asked 31/8, 2016 at 9:7
3
Solved
I'm using Git Bash with ConEmu to make it look cool. However, upon installing Composer the colors seem to be escaped:
So Git Bash does not support all the colors. Checking the AnsiColors256.ans ...
Reilly asked 20/12, 2014 at 13:24
2
Solved
I am trying to print coloured text with colorama but when I compile an exe and run following...
from colorama import Fore, Back, Style
print(Fore.RED + 'text')
print(Back.GREEN + 'and with a green...
Dashboard asked 22/11, 2017 at 10:33
2
Solved
Is there any simple way to parse Ansi colors in log files, and use it in text fields in Swing (JTextArea, JTextPAne,...)?
Induplicate asked 1/8, 2011 at 13:43
1 Next >
© 2022 - 2024 — McMap. All rights reserved.