{"id":27215357,"url":"https://github.com/pradosh-arduino/buffer","last_synced_at":"2025-04-12T19:17:08.270Z","repository":{"id":286454985,"uuid":"961445117","full_name":"pradosh-arduino/buffer","owner":"pradosh-arduino","description":"A fast, completely controllable input method solution for C#.","archived":false,"fork":false,"pushed_at":"2025-04-09T14:40:00.000Z","size":21324,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T19:16:29.438Z","etag":null,"topics":["buffer","csharp","dotnet"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/buffer","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/pradosh-arduino.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}},"created_at":"2025-04-06T14:39:16.000Z","updated_at":"2025-04-09T21:55:48.000Z","dependencies_parsed_at":"2025-04-10T04:15:21.724Z","dependency_job_id":null,"html_url":"https://github.com/pradosh-arduino/buffer","commit_stats":null,"previous_names":["pradosh-arduino/buffer"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradosh-arduino%2Fbuffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradosh-arduino%2Fbuffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradosh-arduino%2Fbuffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradosh-arduino%2Fbuffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pradosh-arduino","download_url":"https://codeload.github.com/pradosh-arduino/buffer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618280,"owners_count":21134202,"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":["buffer","csharp","dotnet"],"created_at":"2025-04-10T04:15:20.241Z","updated_at":"2025-04-12T19:17:08.227Z","avatar_url":"https://github.com/pradosh-arduino.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Buffer package in action](./buffer.gif)\n\n## Better Input for C#\n\nHave you ever wondered if you could get the values of what users are typing in real time with `Console.ReadLine()` function? or do you want full control of input?\n\nWell don't worry! This `buffer` nuget package aims to solve the issues of `ReadLine()` and gives more control to the user!\n\n### Features\n- Data updates in real time.\n- Control of buffer when to clear and when to call next time.\n- Directly get the buffer as a character array.\n- Supports multithreading to have extra control.\n- Supports a wide range of .NET Frameworks.\n\n### Usage\n\n#### Process\n```md\n1. Initialize the object\n2. Get the input from the user (does **not** return the value)\n3. Read the buffer to get the values by using two methods\n    1. Get the buffer as char[] itself.\n    2. Get the buffer as a string.\n4. Clear the buffer (you have to do it **manually** by invoking a method)\n```\n\n#### Example Usage\n```cpp\nPradBuffer InputBuffer = new PradBuffer();\n\nInputBuffer.GetInput();\n\nstring value = InputBuffer.GetBufferAsString();\n\nInputBuffer.ClearBuffer();\n```\n\n### Input process\nThe input function is overloaded so there are two different ways to use it.\n\n#### Method 1\n`code.cs`\n```cpp\nInputBuffer.GetInput();\n```\n\n`output:`\n```\n\u003cwaits here for input\u003e\n```\n\n#### Method 2\n`code.cs`\n```cpp\nInputBuffer.GetInput(\"command \u003e \");\n```\n\n`output:`\n```\ncommand \u003e \u003cwaits here for input\u003e\n```\n\n### Importing the package\nYou can check out the [nuget.org](https://www.nuget.org/packages/buffer) site for extra detailed installation.\n\nFor simply just dotnet :\n```bash\ndotnet add package buffer\n```\n\n### Contributing\n\nContributions are welcome! Please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch:\n    ```bash\n    git checkout -b feature-name\n    ```\n3. Commit your changes:\n    ```bash\n    git commit -m \"Add feature-name\"\n    ```\n4. Push to your branch:\n    ```bash\n    git push origin feature-name\n    ```\n5. Open a pull request.\n\n### Contribution guidelines\n- Follow the existing code style.\n- Write clear and concise commit messages.\n- Ensure that your code is well-documented.\n- Write tests for new features and ensure all tests pass before submitting a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradosh-arduino%2Fbuffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradosh-arduino%2Fbuffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradosh-arduino%2Fbuffer/lists"}