{"id":13442636,"url":"https://github.com/eudoxia0/terminal-keypress","last_synced_at":"2025-10-30T10:30:26.073Z","repository":{"id":146722088,"uuid":"89648580","full_name":"eudoxia0/terminal-keypress","owner":"eudoxia0","description":"Read keyboard events in the terminal from Common Lisp","archived":false,"fork":false,"pushed_at":"2017-05-10T23:08:55.000Z","size":3,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-23T05:12:00.348Z","etag":null,"topics":["console","keyboard","keypress","lisp","terminal"],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","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/eudoxia0.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}},"created_at":"2017-04-27T23:26:23.000Z","updated_at":"2024-10-11T01:02:52.000Z","dependencies_parsed_at":"2023-06-12T07:00:22.865Z","dependency_job_id":null,"html_url":"https://github.com/eudoxia0/terminal-keypress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eudoxia0%2Fterminal-keypress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eudoxia0%2Fterminal-keypress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eudoxia0%2Fterminal-keypress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eudoxia0%2Fterminal-keypress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eudoxia0","download_url":"https://codeload.github.com/eudoxia0/terminal-keypress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238950457,"owners_count":19557533,"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","keyboard","keypress","lisp","terminal"],"created_at":"2024-07-31T03:01:48.395Z","updated_at":"2025-10-30T10:30:20.771Z","avatar_url":"https://github.com/eudoxia0.png","language":"Common Lisp","funding_links":[],"categories":["Common Lisp"],"sub_categories":[],"readme":"# terminal-keypress\n\nRead keypresses from the terminal using [trivial-raw-io][trio].\n\n# Overview\n\nThis is a library for reading semi-raw user input from terminals. Semi-raw as\nin, we can't detect if the user pressed the \u003ckbd\u003eControl\u003c/kbd\u003e key alone, and\nthe function keys are a mystery.\n\nWhat is supported, however, is:\n\n1. Regular characters\n2. \u003ckbd\u003eControl\u003c/kbd\u003e+\u003ckbd\u003e[key]\u003ckbd\u003e\n3. \u003ckbd\u003eAlt\u003c/kbd\u003e+\u003ckbd\u003e[key]\u003ckbd\u003e\n4. \u003ckbd\u003eControl\u003c/kbd\u003e+\u003ckbd\u003eAlt\u003c/kbd\u003e+\u003ckbd\u003e[key]\u003ckbd\u003e\n\n# Usage\n\n```lisp\nCL-USER\u003e (terminal-keypress:read-event)\n;; Press 't'\n\n#S(TERMINAL-KEYPRESS::KEYPRESS\n   :BYTES #(116)\n   :CHARACTER #\\t\n   :CONTROL NIL\n   :ESCAPE NIL)\n\n\nCL-USER\u003e (terminal-keypress:read-event)\n;; Press 'Control-t'\n\n#S(TERMINAL-KEYPRESS::KEYPRESS\n   :BYTES #(20)\n   :CHARACTER #\\T\n   :CONTROL T\n   :ESCAPE NIL)\n\n\nCL-USER\u003e (terminal-keypress:read-event)\n;; Press 'Alt-t'\n\n#S(TERMINAL-KEYPRESS::KEYPRESS\n   :BYTES #(27 116)\n   :CHARACTER #\\t\n   :CONTROL NIL\n   :ESCAPE T)\n\n\nCL-USER\u003e (terminal-keypress:read-event)\n;; Press 'Control-Alt-t'\n\n#S(TERMINAL-KEYPRESS::KEYPRESS\n   :BYTES #(27 20)\n   :CHARACTER #\\T\n   :CONTROL T\n   :ESCAPE T)\n```\n\n# License\n\nCopyright (c) 2016–2017 Fernando Borretti\n\nLicensed under the MIT License.\n\n[trio]: http://quickdocs.org/trivial-raw-io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feudoxia0%2Fterminal-keypress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feudoxia0%2Fterminal-keypress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feudoxia0%2Fterminal-keypress/lists"}