Giter Club home page Giter Club logo

base16-putty's Introduction

base16-putty

Base16 colors for PuTTY

Introduction

This project provides .reg files for configuring PuTTY colors according to the base16 system.

Usage

  1. Make sure to have the most recent stable version of PuTTY;
  2. Make sure that your version is configured to provide 256 colors support;
  3. Choose your theme from the base16-gallery;
  4. Locate the corresponding file in putty directory and download it;
  5. Edit the file, and change session name in [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\ {{SESSION_NAME}} ] to the session you would like to apply the theme;
  6. Run the file and accept it to make changes in Windows Registry.

Issues or Contributions

This repo rebuilds the colorschemes every week, so make sure to pull to keep up to date with the latest changes.

If you're you're looking to build the colorschemes manually to test out a change:

  1. Install base16-builder-go or a compatible tool. (Note that in the case of base16-builder-go the releases' page contains pre-built binaries that can be simply downloaded and executed).
  2. Execute the builder binary from the base16-putty directory. In the case of base16-builder-go no argument is required.
  3. Check if updates took place (new/modified files are placed inside the /putty directory).

Have a look at these guides for more information.

Thanks

base16-putty's People

Contributors

abravalheri avatar benjojo avatar bobo1239 avatar clach04 avatar hashbang173 avatar jamygolden avatar staticaland avatar steelywing avatar tinted-theming-bot avatar unwiredbrain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

base16-putty's Issues

Idea update template to include ANSI codes/sequences

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"

Broken/unreadable bold colors

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
putty_base16-catppuccin-macchiato

LXterminal with official catppuccin-macchiato colors

lxtermain_catppuccin_macchiato

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

Fixed bold green
putty_macchiato_patched_bold_green

For comparison default putty colors
putty_default

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

bold comments incorrect, should be bright

Tomorrow 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.

Reg keys containing space(s) fail to load

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.