{"id":20275642,"url":"https://github.com/solidiquis/termscroll","last_synced_at":"2026-04-29T09:06:18.888Z","repository":{"id":57569888,"uuid":"345223728","full_name":"solidiquis/termscroll","owner":"solidiquis","description":"Simple terminal utility to render, scroll, and select through a list of items 💻 ⌨️","archived":false,"fork":false,"pushed_at":"2021-03-07T02:16:13.000Z","size":8547,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T03:33:20.994Z","etag":null,"topics":["go","golang","productivity","terminal","terminal-based"],"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-07T00:18:34.000Z","updated_at":"2022-02-26T11:44:00.000Z","dependencies_parsed_at":"2022-09-17T05:24:17.707Z","dependency_job_id":null,"html_url":"https://github.com/solidiquis/termscroll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/solidiquis/termscroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Ftermscroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Ftermscroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Ftermscroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Ftermscroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solidiquis","download_url":"https://codeload.github.com/solidiquis/termscroll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Ftermscroll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32418206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["go","golang","productivity","terminal","terminal-based"],"created_at":"2024-11-14T13:10:24.202Z","updated_at":"2026-04-29T09:06:18.871Z","avatar_url":"https://github.com/solidiquis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# termscroll\r\nExample program that leverages termscroll to change wallpapers from the terminal:\r\n\u003ccenter\u003e\r\n  \u003cimg src=\"https://github.com/solidiquis/termscroll/blob/master/assets/demo.gif\"\u003e\r\n\u003c/center\u003e\r\n\r\n## Installation \u0026 Usage\r\n`$ go get github.com/solidiquis/termscroll`\r\n\r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\tts \"github.com/solidiquis/termscroll\"\r\n)\r\n\r\nfunc main() {\r\n\titems := []string{\r\n\t\t\"item a\",\r\n\t\t\"item b\",\r\n\t\t\"item c\",\r\n\t\t\"item d\",\r\n                // ...\r\n\t}\r\n\r\n        // Graceful exit necessary to unhide cursor\r\n\tdone := make(chan bool)\r\n\tlistenForExitSig, cleanup := ts.InitExitStrat(done)\r\n\tgo listenForExitSig()\r\n\r\n        // up() traverses list up\r\n        // down() traverses list down\r\n        // current() gets current active index\r\n\tup, down, current := ts.InitRender(items)\r\n\r\n        // Read from stdin without buffering\r\n\tstdin := make(chan string, 1)\r\n\tgo ts.ReadStdin(stdin)\r\n\r\nreadInput:\r\n\tfor {\r\n\t\tselect {\r\n\t\tcase \u003c-done:\r\n\t\t\tbreak readInput\r\n\t\tcase ch := \u003c-stdin:\r\n\t\t\tswitch ch {\r\n\t\t\tcase \"k\":\r\n\t\t\t\tup()\r\n\t\t\tcase \"j\":\r\n\t\t\t\tdown()\r\n\t\t\tcase \"\\n\": // Enter\r\n\t\t\t\tfmt.Printf(\"You've selected %s\\n\", items[current()])\r\n\t\t\t\tbreak readInput\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n        // unhide cursor \r\n\tcleanup()\r\n}\r\n\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidiquis%2Ftermscroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidiquis%2Ftermscroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidiquis%2Ftermscroll/lists"}