{"id":16699279,"url":"https://github.com/ousttrue/termutil","last_synced_at":"2025-03-14T04:32:55.431Z","repository":{"id":1220719,"uuid":"1138442","full_name":"ousttrue/termutil","owner":"ousttrue","description":"terminfo utility for node.js","archived":false,"fork":false,"pushed_at":"2010-12-05T05:13:35.000Z","size":105,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-20T19:19:23.544Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/ousttrue.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}},"created_at":"2010-12-04T17:09:59.000Z","updated_at":"2013-12-14T12:51:51.000Z","dependencies_parsed_at":"2022-07-06T12:41:04.967Z","dependency_job_id":null,"html_url":"https://github.com/ousttrue/termutil","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/ousttrue%2Ftermutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousttrue%2Ftermutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousttrue%2Ftermutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousttrue%2Ftermutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ousttrue","download_url":"https://codeload.github.com/ousttrue/termutil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243526885,"owners_count":20305109,"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-12T18:06:29.844Z","updated_at":"2025-03-14T04:32:55.369Z","avatar_url":"https://github.com/ousttrue.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# termutil\n\nTermutil is an terminfo utility for term.js.\n\nThis module provide non block stdin input event \nand terminfo command write to stdout.\n\n## build\n\n    node-waf configure build\n\n## usage\n\n    var termutil=require('termutil');\n    \n    var term=new termutil.Term();\n    \n    var keymap={\n        0x71: // q\n            function(){ process.exit(); },\n        0x68: // h\n            function(){ term.tcmd('cub1'); },\n        0x6a: // j\n            function(){ term.tcmd('cud1'); },\n        0x6b: // k\n            function(){ term.tcmd('cuu1'); },\n        0x6c: // l\n            function(){ term.tcmd('cuf1'); },\n    };\n    \n    term.on('keyinput', function(code){\n        if(code in keymap){\n            keymap[code]();\n        }\n        else{\n            process.stdout.write('['+code+']');\n        }\n    });\n    \n    term.tcmd('clear');\n    term.listen();\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fousttrue%2Ftermutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fousttrue%2Ftermutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fousttrue%2Ftermutil/lists"}