/terminal_style_toolkit

Scripts / tools / config for terminal styling and colors / colours

Primary LanguagePython

terminal_style_toolkit

Scripts / tools / config for terminal styling and colors / colours

Table of contents generated with markdown-toc

Notes

When testing out a color scheme/theme consider different use cases:

In general avoid:

  • Solutions that modify the TERM variable in .bashrc.
  • Solutions that modify the Vim t_Co variable.

Fonts Notes

Sample files

Scripts for running in terminal

Conversion tools

  • putty/any2theme.py - Convert many input theme formats and render with any template (or output raw tstk json). Input files supported; tstk json, Alacritty TOML, iTerm2, Putty reg, pywal16
  • parse_palette_tools.py - tools for dumping palettes for easier read/conversion
  • alacritty_yaml2toml.py - rough convert alacritty YAML into alacritty TOML
  • goghjson2puttyjson.py - tools for converting Gogh JSON Color Schemes from https://github.com/Gogh-Co/Gogh/ into json that Putty conversion tools (json2putty_reg.py) can use
  • pywaltemplate2puttymustache.py - convert pywal16 template
  • putty/json2putty_reg.py - convert (Putty) json into Putty registry import and html preview - Used to create https://github.com/clach04/putty_themes
  • Also see https://github.com/clach04/themer

Misc tools

  • mintty_screenshot.py - launch mintty with specific theme and run pyshow_colors2 and then take a screenshot To setup: pip install -r requirements_optional.txt Screenshots are in BMP format, strongly recommend converting to PNG for size/space reasons.

Putty

See Putty tools readme

Microsoft Windows CMD.exe

See Color Tool (ColorTool) https://github.com/microsoft/terminal/releases/tag/1904.29002 The campbell.ini color scheme is the Windows 10 Fall Creator's Update CMD out-of-box colors if need to restore to original colors.

From https://github.com/microsoft/terminal/tree/1904.29002/tools/ColorTool readme:

  • cmd-legacy is the legacy color scheme of the Windows Console, before July 2017
  • campbell is the new default scheme used by the Windows Console Host, as of the Fall Creator's Update.

NOTE latest ColorTool source is located in https://github.com/microsoft/terminal/tree/main/src/tools/ColorTool

ColorTool can use:

  1. json format as used by concfg https://github.com/lukesampson/concfg
  2. XML format as used by iTerm2-Color-Schemes - https://github.com/mbadolato/iTerm2-Color-Schemes/
  3. INI format, as provided in samples for ColorTool https://github.com/microsoft/terminal/tree/main/src/tools/ColorTool

Resources

Color Codes

ANSI colors are often named:

0    black
1    dark red
2    dark green
3    brown
4    dark blue
5    dark magenta
6    dark cyan

7    light grey
8    dark grey
9    red
10   green
11   yellow
12   blue
13   magenta
14   cyan
15   white

Color Tools

vim

vim themes that only use ANSI (16) colors - https://jeffkreeftmeijer.com/vim-16-color/

Midnight Commander

See https://github.com/jan-warchol/selenized/tree/putty/mc and jan-warchol/selenized#7

MC's default color settings assume that terminal's blue will be very dark and suitable for use as background.

ls colors / dir_colors

Related projects

Non-Terminal

TODO Resources

To checkout:

Color schemes that pass eyeball test but I'd like to checkout:

Color Scheme Collections