{"id":19308246,"url":"https://github.com/sikofitt/getch_c","last_synced_at":"2026-05-06T01:31:57.419Z","repository":{"id":70830734,"uuid":"341368929","full_name":"sikofitt/getch_c","owner":"sikofitt","description":"This is an attempt at replicating the non standard _getch function for windows from conio.h on linux","archived":false,"fork":false,"pushed_at":"2021-03-01T17:42:28.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"1.x","last_synced_at":"2025-01-06T01:27:05.253Z","etag":null,"topics":["c","getch","linux","termios","windows-alternative"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sikofitt.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":"2021-02-22T23:38:11.000Z","updated_at":"2021-03-01T17:42:31.000Z","dependencies_parsed_at":"2023-02-24T08:00:25.330Z","dependency_job_id":null,"html_url":"https://github.com/sikofitt/getch_c","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sikofitt%2Fgetch_c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sikofitt%2Fgetch_c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sikofitt%2Fgetch_c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sikofitt%2Fgetch_c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sikofitt","download_url":"https://codeload.github.com/sikofitt/getch_c/tar.gz/refs/heads/1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240409848,"owners_count":19796797,"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":["c","getch","linux","termios","windows-alternative"],"created_at":"2024-11-10T00:14:11.939Z","updated_at":"2026-05-06T01:31:52.375Z","avatar_url":"https://github.com/sikofitt.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getch for linux\n\nThis is an attempt at replicating the non standard _getch function for windows from conio.h on linux\n\nIt should work mostly the same as the windows function.\n\nFor special keys you need to call _getch twice.  The first time it will return either a 0 or 0xE0 (224) depending on the key pressed.\n\nSee https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/getch-getwch?view=msvc-160#remarks\n\nDifference is that _getch will read CTRL+C, or any control characters.\n\nThere is also an extra function `int cinPeek()` that returns the next character in stdin without removing it.\n\n### Note\nMake sure that the user calling the function is in the group \"input\"\n\nOnly tested on Gentoo with XTerm and /dev/tty?.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsikofitt%2Fgetch_c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsikofitt%2Fgetch_c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsikofitt%2Fgetch_c/lists"}