tinted-theming / base16-putty Goto Github PK
View Code? Open in Web Editor NEWPutty reg files for the base16 themes
License: MIT License
Putty reg files for the base16 themes
License: MIT License
After reading through other projects and terminal docs I think the lines like https://github.com/tinted-theming/base16-putty/blob/e144128dda4b19e132eb0701e2f088dc3ce2f94a/templates/default.mustache#L29 are incorrectly using "bold" where "bright" should used instead.
For example
Spent some time playing with base16-catppuccin-macchiato
and ended up independently arriving to the same conclusion as #17 - I've not looked at any other themes but suspect to see similar results.
The current template maps Default Bold Foreground
to the same as Default Foreground
, I agree with the sentiments expressed by @abravalheri in comment #17 (comment) it would be a shame to not use all the colors available but I do not see an alternative.
I have an Armbian board and the motd when logging it is 100% unreadable due to the use of bold green. Screenshot below (not system load, compare to lxterminal screen shot discussed later).
putty base16-catppuccin-macchiato unreadable bold green
LXterminal with official catppuccin-macchiato colors
This was basically my initial issue/test case, my second test case is a small bash script to show color combinations with text (copy/pasted below) and from that you can see the other bolds are problematic, but not as sever as the green bold case I got lucky in spotting that with the motd being unreadable).
I took a look at the LXterminal ( I have a Lubuntu machine for experiments) and https://github.com/catppuccin/lxterminal/blob/main/src/Catppuccin-Macchiato.conf -this works/looks great - one option would be to clone what it is doing. Screen shot above.
I ended up making my own tweaks, the real chane in bold green (not changed the others) and some debug comments to make clear the base number AND hex for easier comparison with other configs clach04@2c1c788
For comparison default putty colors
Test commands:
/etc/update-motd.d/10-armbian-header ; /etc/update-motd.d/30-armbian-sysinfo ; /etc/update-motd.d/40-armbian-updates ; /etc/update-motd.d/41-armbian-config
code/sh/show_colors2.bash
You would need an Armbian OS (or some tool to emit bold green).
As bash extension was blocked by github, rename on download
show_colors2.bash.txt
Inline version for easy of reading:
#!/bin/bash
# based on script from
# from https://bbs.archlinux.org/viewtopic.php?id=51818&p=1%29
# also see http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
# shows color/colour names. NOTE needs 86 columns (and regular 24 lines)
#
# This file echoes a bunch of color codes to the
# terminal to demonstrate what's available. Each
# line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a
# test use of that color on all nine background
# colors (default + 8 escapes).
#
T='gYw' # The test text
# declare -A color_map=( [' m']=' m' [' 1m']=' 1m'
# ['1;37m']='TESTx')
# standard ansi mappings, generated this by reviewing https://bluesock.org/~willkg/dev/ansi.html
declare -A color_map=(
[' m']="normal" [' 1m']="bold" [' 30m']="black" ['1;30m']="blackB" [' 31m']="red"
['1;31m']="redB" [' 32m']="green" ['1;32m']="greenB" [' 33m']="yellow"
['1;33m']="yellowB" [' 34m']="blue" ['1;34m']="blueB" [' 35m']="magenta"
['1;35m']="magentaB" [' 36m']="cyan" ['1;36m']="cyanB" [' 37m']="white"
['1;37m']="whiteB"
['40m']="black" ['41m']="red" ['42m']="green" ['43m']="yellow"
['44m']="blue" ['45m']="magenta" ['46m']="cyan" ['47m']="white"
)
echo -en " ";
for BG in 40m 41m 42m 43m 44m 45m 46m 47m;
do
bgcolor_name=${color_map[$BG]}
bgcolor_name=`printf "%8s" ${bgcolor_name}`
echo -en "${bgcolor_name}";
done
#echo -e "\n 40m 41m 42m 43m\
# 44m 45m 46m 47m";
echo -e "\n 40m 41m 42m 43m\
44m 45m 46m 47m";
for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \
'1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \
' 36m' '1;36m' ' 37m' '1;37m';
do FG=${FGs// /}
# echo [\'$FG\']=\"$FG\" # generate hash table mapping
fgcolor_name=${color_map[$FGs]}
fgcolor_name=`printf "%8s" ${fgcolor_name}`
echo -en "${fgcolor_name} $FGs \033[$FG $T "
for BG in 40m 41m 42m 43m 44m 45m 46m 47m;
do echo -en "$EINS \033[$FG\033[$BG $T \033[0m";
done
#echo -en ${color_name};
#printf "%8s" ${color_name}
echo;
done
echo
infocmp|grep colors
env TERM=xterm-256color infocmp | grep colors
Some of the Tomorrow colors were a bit off. In particular, ANSI bold green (color 11) is grey and matches the background. Since my default bash prompt is green, that made it impossible to see.
I've issued #7 to fix this.
Could the actual templates please be added to this repo so allow users to build custom schemes?
On Windows 8.1, using PuTTY .65 (may apply to .64 as well), reg keys that use spaces aren't loaded properly and instead use the default color scheme.
Altering the keys to contain no spaces via registry editor caused them to load properly w/colors in effect.
While screwing around w/the names of saved sessions through the PuTTY GUI, I noticed that one session that I saved with a space in the name appeared in the registry as url-encoded; the space had been translated into "%20". You may want to change your .reg files to use that format.
Who ever had the idea to include comments with color information, thank you!
I'd like to extend this idea further by including the ANSI escape values, to make it easier to compare/debug - especially against a show colors test output. E.g. https://github.com/mbadolato/iTerm2-Color-Schemes/blob/master/screenshots/catppuccin-macchiato.png
Example - NOTE only implemented the non-default values. Thoughts?
Windows Registry Editor Version 5.00
; Base16 catppuccin_base16_Macchiato
; Scheme author: https://github.com/catppuccin/catppuccin
; Template author: Tinted Theming (https://github.com/tinted-theming)
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\catppuccin_base16_macchiato]
; Default Foreground
; base05 #cad3f5
"Colour0"="202,211,245"
; Default Bold Foreground -- equals to non-bold
; base05 #cad3f5
"Colour1"="202,211,245"
; Default Background
; base00 #24273a
"Colour2"="36,39,58"
; Default Bold Background -- equals to non-bold
; base00 #24273a
"Colour3"="36,39,58"
; Cursor Text -- equals to default background
; base00 #24273a
"Colour4"="36,39,58"
; Cursor Colour -- equals to default foreground
; base05 #cad3f5
"Colour5"="202,211,245"
; ANSI Black
; 30m
; base00 #24273a
"Colour6"="36,39,58"
; ANSI Black Bright
; 1;30m
; base03 #494d64
"Colour7"="73,77,100"
; ANSI Red
; 31m
; base08 #ed8796
"Colour8"="237,135,150"
; ANSI Red Bright
; 1;31m
; base09 #f5a97f
"Colour9"="245,169,127"
; ANSI Green
; 32m
; base0B #a6da95
"Colour10"="166,218,149"
; ANSI Green Bright
; 1;32m
; base0B #a6da95
"Colour11"="166,218,149"
; ANSI Yellow
; 33m
; base0A #eed49f
"Colour12"="238,212,159"
; ANSI Yellow Bright
; 1;33m
; base0A #eed49f
"Colour13"="238,212,159"
; ANSI Blue
; 34m
; base0D #8aadf4
"Colour14"="138,173,244"
; ANSI Blue Bright
; 1;34m
; base0D #8aadf4
"Colour15"="138,173,244"
; ANSI Magenta
; 35m
; base0E #c6a0f6
"Colour16"="198,160,246"
; ANSI Magenta Bright
; 1;35m
; base0E #c6a0f6
"Colour17"="198,160,246"
; ANSI Cyan
; 36m
; base0C #8bd5ca
"Colour18"="139,213,202"
; ANSI Cyan Bright
; 1;36m
; base0F #f0c6c6
"Colour19"="240,198,198"
; ANSI White
; 37m
; base05 #cad3f5
"Colour20"="202,211,245"
; ANSI White Bright
; 1;37m
; base07 b7bdf8
"Colour21"="183,189,248"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.