{"repo":"Cysharp/Kokuban","free":true,"listed":false,"github":"https://github.com/Cysharp/Kokuban","clone":"git clone https://github.com/Cysharp/Kokuban.git","description":"Simplifies styling strings in the terminal for .NET application.","language":"C#","stars":173,"topics":["dotnet","c-sharp","terminal"],"license":null,"category":"cli-tools","readme_excerpt":"🖍 Kokuban Kokuban simplifies styling strings in the terminal for .NET applications. (Kokuban is \"blackboard\" in Japanese.) Kokuban is based on JavaScript library Chalk for many of its concepts and some of its code. Features - Expressive API - Auto detects color support - Auto enables escape sequence support on Windows 10 20H1 or later - 256 (8-bit) / TrueColor (24-bit) colors support Requirements - .NET Standard 2.0 or higher - Linux, macOS, Windows ... - Windows 10 Anniversary Update or later Install Usage Nested styles If you nest styled strings, the styles will be automatically stacked. API Chalk. {. ...}[string] (indexer) Chalk. {. ...} + string ( + operator) ToStyledString extension method Chalk.Create method You can customize the behavior by explicitly instancing the AnsiStyle and use it. KokubanColorValue struct KokubanColorValue struct represents a color of AnsiStyle. Styles - Decorations - Bold - Dim - Italic - Underline - Inverse - Overline - Foreground colors - Black - Red - Green - Yellow - Blue - Magenta - Cyan - White - Gray - Grey - BrightBlack - BrightRed - BrightGreen - BrightYellow - BrightBlue - BrightMagenta - BrightCyan - BrightWhite - Foreground (for 3 or 4-bit) - Ansi256 (for 8-bit) - Rgb (for 24-bit) - Background colors - BgBlack - BgRed - BgGreen - BgYellow - BgBlue - BgMagenta - BgCyan - BgWhite - BgGray - BgGrey - BgBrightBlack - BgBrightRed - BgBrightGreen - BgBrightYellow - BgBrightBlue - BgBrightMagenta - BgBrightCyan - BgBrightWhite - Backgroun","default_branch":null,"files":null,"tree":[],"storefront":"/r/Cysharp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Cysharp/Kokuban/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}