{"id":20036840,"url":"https://github.com/vborovikov/termly","last_synced_at":"2026-04-28T16:37:57.494Z","repository":{"id":144113900,"uuid":"430841848","full_name":"vborovikov/termly","owner":"vborovikov","description":"Terminal colorizer for .NET console apps","archived":false,"fork":false,"pushed_at":"2025-10-19T09:58:27.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-29T12:44:22.834Z","etag":null,"topics":["ansi","cli","colorize","console","csharp","dotnet","terminal","tui"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vborovikov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-11-22T19:38:44.000Z","updated_at":"2025-10-19T09:58:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ebe1b80-9acf-429b-bef0-32dddf39086a","html_url":"https://github.com/vborovikov/termly","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vborovikov/termly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vborovikov%2Ftermly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vborovikov%2Ftermly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vborovikov%2Ftermly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vborovikov%2Ftermly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vborovikov","download_url":"https://codeload.github.com/vborovikov/termly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vborovikov%2Ftermly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansi","cli","colorize","console","csharp","dotnet","terminal","tui"],"created_at":"2024-11-13T10:17:00.603Z","updated_at":"2026-04-28T16:37:57.476Z","avatar_url":"https://github.com/vborovikov.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Termly\nTerminal colorizer for .NET console apps\n\n[![NuGet](https://img.shields.io/nuget/dt/Termly.svg)](https://www.nuget.org/packages/Termly)\n[![NuGet](https://img.shields.io/nuget/v/Termly.svg)](https://www.nuget.org/packages/Termly)\n\nTermly provides an easy to use set of extension methods to display colorized text in the terminal. It doesn't support arbitrary colors, instead it reuses the same old [ConsoleColor](https://docs.microsoft.com/en-us/dotnet/api/system.consolecolor) constants. The idea here is that you don't need to come up with your own unique color pallete to display textual data, you just continue using the colors the user already chose for their terminal. The colorization is achieved with the use of a small subset of ANSI escape codes.\n\nApps with Termly look great in any terminal, using the user's favorite color scheme.\n\n# Usage\n\nYou can start adding color to the console output with `Print`, `PrintLine`, and `InColor` extension methods.\n\n```csharp\nprivate static void HandleContextLog(object sender, LoggingEventArgs e)\n{\n    if (e.Kind \u003e ChannelMessageKind.Trace)\n    {\n        // using PrintLine method\n        Console.Error.PrintLine($\"{e.Source:gray}: {e.RawMessage:darkBlue}\");\n\n        // using InColor method\n        Console.Error.WriteLine($\"{e.Source.InColor(ConsoleColor.Gray)}: {e.RawMessage.InColor(ConsoleColor.DarkBlue)}\");\n    }\n}\n```\n\nThe overloaded extension methods `Print` and `PrintLine` are used to colorize interpolated string parameters with the same or different colors.\n\n```csharp\nConsole.Out.PrintLine(ConsoleColor.DarkYellow, $\"Parameters Count: {parameters.Statistics.ParametersCount}\");\n\nConsole.Out.PrintLine($\"Count: {count:blue} Total: {total:white|green}\");\n```\n\nBackground colors are supported too.\n\n```csharp\nConsole.Error.WriteLine(\"ALERT\".InColor(foreground: ConsoleColor.Black, background: ConsoleColor.Red));\nConsole.Error.PrintLine($\"{\"ALERT\":black|red}\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvborovikov%2Ftermly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvborovikov%2Ftermly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvborovikov%2Ftermly/lists"}