{"id":20275645,"url":"https://github.com/solidiquis/ansigo","last_synced_at":"2025-04-11T05:25:02.373Z","repository":{"id":57573548,"uuid":"351952643","full_name":"solidiquis/ansigo","owner":"solidiquis","description":"Ansigo offers a convenient way to detect key-presses and control the terminal's font, color, and cursor with ease 🦄","archived":false,"fork":false,"pushed_at":"2021-04-10T18:15:43.000Z","size":946,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T03:34:02.030Z","etag":null,"topics":["ansi","go","golang","terminal","vt100"],"latest_commit_sha":null,"homepage":"","language":"Go","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/solidiquis.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}},"created_at":"2021-03-27T01:16:58.000Z","updated_at":"2023-07-25T14:44:42.000Z","dependencies_parsed_at":"2022-09-26T19:01:10.818Z","dependency_job_id":null,"html_url":"https://github.com/solidiquis/ansigo","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Fansigo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Fansigo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Fansigo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Fansigo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solidiquis","download_url":"https://codeload.github.com/solidiquis/ansigo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248346796,"owners_count":21088527,"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":["ansi","go","golang","terminal","vt100"],"created_at":"2024-11-14T13:10:24.685Z","updated_at":"2025-04-11T05:25:02.356Z","avatar_url":"https://github.com/solidiquis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansigo\nA library to make the controlling of ANSI terminal emulators' fonts, colors, and cursors, a little less painful — also can be used to detect key presses in the terminal.\n\nDocumentation can be found at https://pkg.go.dev/github.com/solidiquis/ansigo\n\n## Installation\n```\n$ go get github.com/solidiquis/ansigo\n```\n\n## Demo\nMoving the cursor around the screen Vim-style:\n```go\npackage main\n\nimport (\n\tansi \"github.com/solidiquis/ansigo\"\n)\n\nfunc main() {\n\tansi.EraseScreen()\n\tansi.CursorSetPos(0, 0)\n\n\tstdin := make(chan string, 1)\n\tgo ansi.GetChar(stdin)\n\n\tfor {\n\t\tswitch \u003c-stdin {\n\t\tcase \"h\":\n\t\t\tansi.CursorBackward(1)\n\t\tcase \"j\":\n\t\t\tansi.CursorDown(1)\n\t\tcase \"k\":\n\t\t\tansi.CursorUp(1)\n\t\tcase \"l\":\n\t\t\tansi.CursorForward(1)\n\t\t}\n\t}\n}\n```\n\u003cimg src=\"https://github.com/solidiquis/solidiquis/blob/master/assets/ansigo_demo.gif?raw=true\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidiquis%2Fansigo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidiquis%2Fansigo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidiquis%2Fansigo/lists"}