{"id":15393595,"url":"https://github.com/zewenn/zig-ascii-input","last_synced_at":"2025-08-12T22:36:30.513Z","repository":{"id":252760931,"uuid":"841358455","full_name":"zewenn/zig-ascii-input","owner":"zewenn","description":"An ASCII input library for console applications written in zig","archived":false,"fork":false,"pushed_at":"2024-08-22T09:02:10.000Z","size":19923,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T13:34:28.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","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/zewenn.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-08-12T08:49:18.000Z","updated_at":"2024-08-22T09:02:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a46a4ec-de0f-4fe1-869f-538a9ef111ed","html_url":"https://github.com/zewenn/zig-ascii-input","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"34a36a13c9089714435c645a98a4d4609e6d7abf"},"previous_names":["zewenn/zig-ascii-input"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewenn%2Fzig-ascii-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewenn%2Fzig-ascii-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewenn%2Fzig-ascii-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewenn%2Fzig-ascii-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zewenn","download_url":"https://codeload.github.com/zewenn/zig-ascii-input/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243646545,"owners_count":20324583,"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":[],"created_at":"2024-10-01T15:19:44.970Z","updated_at":"2025-03-14T20:44:44.418Z","avatar_url":"https://github.com/zewenn.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!CAUTION]\n\u003e This library is **DEPRECATED** and will not be supported further.\n\n# Zig Termnal Input Library\n\u003e [!WARNING]\n\u003e This library currently only supports Linux and MacOS\n\n## How to use?\n```zig\nzinput.init(\u0026allocator);\n```\n\u003e [!IMPORTANT]\n\u003e This will set the terminal to **RAW** mode, make sure to call `zinput.deinit()` to change it back to cooked mode!\n```zig\nfor (zinput.getKeys()) |key| switch (key) {\n    zinput.keys.ESCAPE =\u003e break :game_loop,\n    else =\u003e {},\n};\n```\nBy calling the `zinput.getKeys()` function, you will get a `u8` buffer with all the keys pressed on that frame.\n\u003e [!WARNING]\n\u003e This only works with new keypresses, only one key can be held down.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzewenn%2Fzig-ascii-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzewenn%2Fzig-ascii-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzewenn%2Fzig-ascii-input/lists"}