recentpopularlog in

kme : colors   40

Development notes: Search results for dircolors | https://wills-tech-notes.blogspot.com/
<code class="language-bash">
export LS_COLORS=$(echo $LS_COLORS|sed 's/di=01;34/di=01;36/')
</code>
unix  terminal  shell  colors  annoyance  directory  ls  dircolors  solution 
11 weeks ago by kme
Baltasarq/cscrutil: Multiplatform screen console management for C | https://github.com/
Multiplatform screen console management for C. Contribute to Baltasarq/cscrutil development by creating an account on GitHub.
c  cplusplus  ansi  colors  ansicolors  console  cli  commandline  library  maybesolution 
february 2019 by kme
chalk/chalk: 🖍 Terminal string styling done right | https://github.com/
🖍 Terminal string styling done right. Contribute to chalk/chalk development by creating an account on GitHub.
javascript  cli  commandline  colors  library 
january 2019 by kme
216 Web Safe Colors List - by WebSafeColors.design | https://websafecolors.info/
mutedgreen: rgba(0,255,156,0.3), Hex: #00FF9C
mutedred: rgba(255,51,46,0.3), Hex: #FF332E
mutedturquoise: rgba(20,174,204, 0.3), Hex: #14AECC
mutedcerulean: rgba(61,138,153, 0.3), Hex: #3D8A99
mutedmagenta: rgba(204,20,97,0.3), Hex: #CC1461
mutedmustard: rgba(232,172,12,0.3), Hex: #E8AC0C
webdevel  webdesign  colors  colorscheme  palette  solution 
june 2018 by kme
python - Print in terminal with colors? - Stack Overflow | https://stackoverflow.com/
There's a useful gist in the comments (https://gist.github.com/4007035).

Using Colorama to wrap stdout or installing ANSI.SYS (wherever you get that nowadays) seems to be required on Windows.
python  tui  colors  shellscripting  ansicolors  crossplatform  solution 
december 2017 by kme
How do I change the color for directories with ls in the console? - Ask Ubuntu
It's just a workaround; ANSI blue is still too dark most of the time, especially in VirtualBox consoles.
To change your directory colors, open up your ~/.bashrc file with your editor
<code class="language-bash">nano ~/.bashrc</code>
and make the following entry at the end of the file:
<code class="language-bash">LS_COLORS=$LS_COLORS:'di=0;35:' ; export LS_COLORS</code>
lscolors  linux  console  colors  sortof  solution  bash 
december 2017 by kme
BashFAQ/053 - Greg's Wiki | http://mywiki.wooledge.org/
I have a fancy prompt with colors, and now bash doesn't seem to know how wide my terminal is. Lines wrap around incorrectly.
You must put \[ and \] around any non-printing escape sequences in your prompt. Thus:
<code class="language-bash">fancy_prompt() {
local blue=$(tput setaf 4)
local purple=$(tput setaf 5)
local reset=$(tput sgr0)
PS1="\[$blue\]\h:\[$purple\]\w\[$reset\]\\$ "
}</code>

Without the \[ \], bash will think the bytes which constitute the escape sequences for the color codes will actually take up space on the screen, so bash won't be able to know where the cursor actually is.
bash  ps1  promptstring  colors  fuckina 
september 2017 by kme
server - Changing shell colors: "dircolors -b command not found" - Ask Ubuntu
dircolors -p > ~/.dircolors

But what I actually ended up doing, since that didn't really work with tmux was to just alias 'less' to 'TERM=xterm-256color less'. I'm sure this will confuse me later.
screen  tmux  termcap  terminfo  annoyancesortof  solution  dircolors  colors  configfile 
november 2015 by kme
Color Output on Bash Scripts | Linuxtidbits
<code class="language-bash">#!/bin/bash
# scriptname - description of script

# Text color variables
txtund=$(tput sgr 0 1) # Underline
txtbld=$(tput bold) # Bold
bldred=${txtbld}$(tput setaf 1) # red
bldblu=${txtbld}$(tput setaf 4) # blue
bldwht=${txtbld}$(tput setaf 7) # white
txtrst=$(tput sgr0) # Reset
info=${bldwht}*${txtrst} # Feedback
pass=${bldblu}*${txtrst}
warn=${bldred}*${txtrst}
ques=${bldblu}?${txtrst}</code>

Also, a helpful demo script:

<code class="language-bash">#!/bin/bash
# tputcolors

echo
echo -e "$(tput bold) reg bld und tput-command-colors$(tput sgr0)"

for i in $(seq 1 7); do
echo " $(tput setaf $i)Text$(tput sgr0) $(tput bold)$(tput setaf $i)Text$(tput sgr0) $(tput sgr 0 1)$(tput setaf $i)Text$(tput sgr0) \$(tput setaf $i)"
done

echo ' Bold $(tput bold)'
echo ' Underline $(tput sgr 0 1)'
echo ' Reset $(tput sgr0)'
echo</code>
tput  terminal  colors  ansi  ansicolor  shellscripting  scripting  bash  reference  solution 
june 2015 by kme

Copy this bookmark:





to read