{"id":19408945,"url":"https://github.com/lexz-08/cslhelper","last_synced_at":"2026-05-05T01:40:44.070Z","repository":{"id":250370982,"uuid":"834275665","full_name":"Lexz-08/CSLHelper","owner":"Lexz-08","description":"Makes creating, destroying, and and printing to a console window easier, with support for virtual terminal sequences and basic text colors.","archived":false,"fork":false,"pushed_at":"2024-07-26T21:00:07.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T14:25:09.834Z","etag":null,"topics":["console","console-window","cpp","csharp","pinvoke","windows"],"latest_commit_sha":null,"homepage":"https://github.com/Lexz-08/CSLHelper/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lexz-08.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-07-26T20:27:17.000Z","updated_at":"2024-07-26T21:00:10.000Z","dependencies_parsed_at":"2024-07-26T22:27:53.746Z","dependency_job_id":null,"html_url":"https://github.com/Lexz-08/CSLHelper","commit_stats":null,"previous_names":["lexz-08/cslhelper"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lexz-08%2FCSLHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lexz-08%2FCSLHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lexz-08%2FCSLHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lexz-08%2FCSLHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lexz-08","download_url":"https://codeload.github.com/Lexz-08/CSLHelper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240587479,"owners_count":19825005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["console","console-window","cpp","csharp","pinvoke","windows"],"created_at":"2024-11-10T12:08:47.965Z","updated_at":"2026-05-05T01:40:39.044Z","avatar_url":"https://github.com/Lexz-08.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSLHelper\n## Description\nMakes creating, destroying, and and printing to a console window easier, with support for virtual terminal sequences and basic text colors.\n\n## How To Use\n```csharp\nusing System.Windows.Forms;\nusing CSLHelper;\n\nusing Icon = System.Drawing.Icon;\n\nnamespace MyProgram\n{\n    public partial class MyForm : Form\n    {\n        InitializeComponent();\n\n        // the 'IsVirtual' parameter defaults to 'false', so only put 'true' here if you want it enabled\n        Console.Inst.CreateConsole(\"My Console Window\", true);\n        FormClosing += (_, __) =\u003e Console.Inst.DestroyConsole();\n\n        Console.Inst.SetIcon(Icon); // sets the window caption icon and the taskbar icon of the console window\n        Console.Inst.SetIconBig(Icon); // sets the taskbar icon of the console window\n        Console.Inst.SetIconSmall(Icon); // sets the window caption icon of the console window\n\n        // have following printed text be bright red and bright black (aka gray)\n        Console.Inst.SetTextColor(TextColor.BrightRed, BackColor.BrightBlack);\n        Console.Inst.WriteLine(\"Hello World!\");\n        Console.Inst.WriteLine(\"Look at my cool text!\");\n\n        // if you have 'IsVirtual' set to 'true' when calling 'Console.Inst.CreateConsole',\n        // you can use ANSI escape codes to format the text and do other manipulations with the console window\n        Console.Inst.Write(\"\\x1b[H\\x1b[2J\"); // clear the console window\n\n        // the following command is similar to calling:\n        // Console.Inst.SetTextColor(TextColor.Red);\n        // Console.Inst.Write(\"This is red text\");\n        Console.Inst.Write(\"\\x1b[31mThis is red text\"); // print red text\n    }\n}\n```\n\n## Example\n![](image.png)\n\n## FYI\nIn the release, there is a file called `cslpp.dll`, which you only need to download if it is not automatically being written to in the same directory as `CSLHelper.dll`.\n\n## Download\n[CSLHelper.dll](https://github.com/Lexz-08/CSLHelper/releases/latest/download/CSLHelper.dll)\u003cbr/\u003e\n[cslpp.dll](https://github.com/Lexz-08/CSLHelper/releases/latest/download/cslpp.dll) — if not in the same directory as `CSLHelper.dll` when program is run\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexz-08%2Fcslhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexz-08%2Fcslhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexz-08%2Fcslhelper/lists"}