This software is licensed under the BSD 3-Clause "New" or "Revised" License. Any third party software maintains its own licensing and copyright.
A simple .NET 6 console program that does one specific thing:
It converts PuTTY Session Colors from various sources into a JSON structure that you can easily paste into your Windows Terminal profiles.json
under schemes
.
It will automatically determine the OS.
The binaries provided are self-contained single binary files produced with dotnet publish
. This removes the requirement on having the .NET Core Runtime installed.
NOTE: If you're on a *NIX based OS, then there are minimum requirements to be met imposed by .NET Core.
Sources So Far:
- The Windows Registry. (Only on Windows)
- Default PuTTY settings directory on *NIX OSes.
~/.putty/sessions/
(Only on a *NIX based OS) - A Registry Export (.reg) file which is OS agnostic.
- Windows
- Any *NIX based OS. (Linux, Unix, BSD, MacOS, etc)
Windows: PuttyColors2WinTerm.exe --help
*NIX: ./PuttyColors2WinTerm --help
:
-v, --verbose (Default: false) Turn on verbose output.
-s, --session (Default: Default%20Settings) puTTY session to convert.
-n, --scheme-name (Default: Default Scheme) Value of `name` JSON attribute in output.
-r, --reg-file Import a Registry File (.reg) for conversion instead of searching for User Settings.
--help Display this help screen.
--version Display version information.
- .Net 6 - A free, cross-platform, open source developer platform for building many different types of applications.
- Microsoft.Win32.Registry - Provides support for accessing and modifying the Windows Registry.
- System.Text.Json - Replaces Newtonsoft.Json in .Net 3x. Lightweight and generally faster.
- CommandLineParser - Terse syntax C# command line parser for .NET.
- Registry Export File Parser - Parses a Windows Registry file for Analysis and Comparison.
- Serilog - Simple .NET logging with fully-structured events.
- Serilog.Sinks.Console - Write log events to System.Console as text or JSON, with ANSI theme support.