{"id":24463389,"url":"https://github.com/msx752/WindowsForms.Console","last_synced_at":"2025-10-01T21:30:51.218Z","repository":{"id":84615965,"uuid":"92072264","full_name":"msx752/WindowsForms.Console","owner":"msx752","description":"Component for WindowsForm","archived":false,"fork":false,"pushed_at":"2024-09-06T10:13:40.000Z","size":1504,"stargazers_count":22,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-02T05:16:12.549Z","etag":null,"topics":["console-application","console-visualization","fconsole","windows-forms","winformconsole","winforms-controls"],"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/msx752.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-22T15:58:41.000Z","updated_at":"2024-09-12T09:55:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c0119f1-5ec7-423d-b0a5-cb2e962d2d7e","html_url":"https://github.com/msx752/WindowsForms.Console","commit_stats":{"total_commits":79,"total_committers":3,"mean_commits":"26.333333333333332","dds":0.5063291139240507,"last_synced_commit":"12c0e025111c85c5fb89e2ba30d7cac1c6b26e58"},"previous_names":["msx752/windowsform.console"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msx752%2FWindowsForms.Console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msx752%2FWindowsForms.Console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msx752%2FWindowsForms.Console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msx752%2FWindowsForms.Console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msx752","download_url":"https://codeload.github.com/msx752/WindowsForms.Console/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234728049,"owners_count":18877708,"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-application","console-visualization","fconsole","windows-forms","winformconsole","winforms-controls"],"created_at":"2025-01-21T05:11:26.751Z","updated_at":"2025-10-01T21:30:51.213Z","avatar_url":"https://github.com/msx752.png","language":"C#","readme":"[![nuget](https://img.shields.io/badge/Nuget-WindowsForms.Console-brightgreen.svg?maxAge=259200)](https://www.nuget.org/packages/WindowsForms.Console)\n[![NuGet](https://img.shields.io/nuget/v/WindowsForms.Console.svg)](https://www.nuget.org/packages/WindowsForms.Console)\n[![Build status](https://ci.appveyor.com/api/projects/status/enn19h5tkvhy2w95?svg=true)](https://ci.appveyor.com/project/msx752/windowsform-console)\n\n# WindowsForms.Console\nComponent of WindowsForm\n\n# Usage\n- import nuget package to the project\n\n```\n        Install-Package WindowsForms.Console\n```\n- add 'FConsole' component to FormControl ([you can see how to](https://stackoverflow.com/questions/2101171/how-to-add-user-control-in-the-toolbox-for-c-net-for-winforms-by-importing-the))\n\n- look at sample project [(for more example)](https://github.com/msx752/WindowsForms.Console/tree/master/SampleProject/SampleFormApplicationCore)\n\n## Example Usage\n\nAll examples assume you have added the FConsole control to your form (named `fconsole1`). Both direct usage and extension methods are shown. For input, async/await is recommended.\n\n```csharp\n// Write a line to the console\nfconsole1.WriteLine(\"Hello, World!\");\nthis.WriteLine(\"Hello, World!\"); // Extension method (inside a Form)\n\n// Write a line with a specific color\nfconsole1.WriteLine(\"Success!\", Color.Green);\nthis.WriteLine(\"Success!\", Color.Green); // Extension method\n\n// Write text without a newline\nfconsole1.Write(\"Processing...\");\nthis.Write(\"Processing...\"); // Extension method\n\n// Write colored text without a newline\nfconsole1.Write(\"Warning!\", Color.Orange);\nthis.Write(\"Warning!\", Color.Orange); // Extension method\n\n// Read a line from the console (asynchronous)\nstring input = await fconsole1.ReadLine();\nstring input2 = await this.ReadLine(); // Extension method\n\n// Read a single key from the console (asynchronous)\nchar key = await fconsole1.ReadKey();\nchar key2 = await this.ReadKey(); // Extension method\n```\n\n\u003e **Note:** `ReadLine` and `ReadKey` are asynchronous and should be awaited inside an async method for best UI responsiveness. Synchronous blocking is possible but not recommended on the UI thread.\n\n![FConsole](https://raw.githubusercontent.com/msx752/WindowsForms.Console/master/example1.png)\n\n# Supported Platforms\n[moved to security.md](https://github.com/msx752/WindowsForms.Console/blob/master/SECURITY.md)\n\n# Dependencies\n- System.Windows.Form\n- System\n# FrameworkReferences for the .NetCore and upper\n- Microsoft.WindowsDesktop.App.WindowsForm\n\n# Example Project\n- component is used in [MSniper Project](https://github.com/msx752/MSniper)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsx752%2FWindowsForms.Console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsx752%2FWindowsForms.Console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsx752%2FWindowsForms.Console/lists"}