{"id":37107382,"url":"https://github.com/zaquestion/gocui","last_synced_at":"2026-01-14T12:54:32.182Z","repository":{"id":57595276,"uuid":"114860807","full_name":"zaquestion/gocui","owner":"zaquestion","description":"Minimalist Go package aimed at creating Console User Interfaces.","archived":false,"fork":true,"pushed_at":"2017-12-20T08:28:25.000Z","size":244,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T14:29:12.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jroimartin/gocui","license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaquestion.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":"2017-12-20T08:10:47.000Z","updated_at":"2017-12-20T08:10:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zaquestion/gocui","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/zaquestion/gocui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaquestion%2Fgocui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaquestion%2Fgocui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaquestion%2Fgocui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaquestion%2Fgocui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaquestion","download_url":"https://codeload.github.com/zaquestion/gocui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaquestion%2Fgocui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":[],"created_at":"2026-01-14T12:54:31.139Z","updated_at":"2026-01-14T12:54:32.175Z","avatar_url":"https://github.com/zaquestion.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GOCUI - Go Console User Interface\n\n[![GoDoc](https://godoc.org/github.com/jroimartin/gocui?status.svg)](https://godoc.org/github.com/jroimartin/gocui)\n\nMinimalist Go package aimed at creating Console User Interfaces.\n\n## Features\n\n* Minimalist API.\n* Views (the \"windows\" in the GUI) implement the interface io.ReadWriter.\n* Support for overlapping views.\n* The GUI can be modified at runtime (concurrent-safe).\n* Global and view-level keybindings.\n* Mouse support.\n* Colored text.\n* Customizable edition mode.\n* Easy to build reusable widgets, complex layouts...\n\n## Installation\n\nExecute:\n\n```\n$ go get github.com/jroimartin/gocui\n```\n\n## Documentation\n\nExecute:\n\n```\n$ go doc github.com/jroimartin/gocui\n```\n\nOr visit [godoc.org](https://godoc.org/github.com/jroimartin/gocui) to read it\nonline.\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/jroimartin/gocui\"\n)\n\nfunc main() {\n\tg, err := gocui.NewGui(gocui.OutputNormal)\n\tif err != nil {\n\t\tlog.Panicln(err)\n\t}\n\tdefer g.Close()\n\n\tg.SetManagerFunc(layout)\n\n\tif err := g.SetKeybinding(\"\", gocui.KeyCtrlC, gocui.ModNone, quit); err != nil {\n\t\tlog.Panicln(err)\n\t}\n\n\tif err := g.MainLoop(); err != nil \u0026\u0026 err != gocui.ErrQuit {\n\t\tlog.Panicln(err)\n\t}\n}\n\nfunc layout(g *gocui.Gui) error {\n\tmaxX, maxY := g.Size()\n\tif v, err := g.SetView(\"hello\", maxX/2-7, maxY/2, maxX/2+7, maxY/2+2); err != nil {\n\t\tif err != gocui.ErrUnknownView {\n\t\t\treturn err\n\t\t}\n\t\tfmt.Fprintln(v, \"Hello world!\")\n\t}\n\treturn nil\n}\n\nfunc quit(g *gocui.Gui, v *gocui.View) error {\n\treturn gocui.ErrQuit\n}\n```\n\n## Screenshots\n\n![r2cui](https://cloud.githubusercontent.com/assets/1223476/19418932/63645052-93ce-11e6-867c-da5e97e37237.png)\n\n![_examples/demo.go](https://cloud.githubusercontent.com/assets/1223476/5992750/720b84f0-aa36-11e4-88ec-296fa3247b52.png)\n\n![_examples/dynamic.go](https://cloud.githubusercontent.com/assets/1223476/5992751/76ad5cc2-aa36-11e4-8204-6a90269db827.png)\n\n## Projects using gocui\n\n* [komanda-cli](https://github.com/mephux/komanda-cli): IRC Client For Developers.\n* [vuls](https://github.com/future-architect/vuls): Agentless vulnerability scanner for Linux/FreeBSD.\n* [wuzz](https://github.com/asciimoo/wuzz): Interactive cli tool for HTTP inspection.\n* [httplab](https://github.com/gchaincl/httplab): Interactive web server.\n* [domainr](https://github.com/MichaelThessel/domainr): Tool that checks the availability of domains based on keywords.\n* [gotime](https://github.com/nanohard/gotime): Time tracker for projects and tasks.\n* [claws](https://github.com/thehowl/claws): Interactive command line client for testing websockets.\n* [terminews](http://github.com/antavelos/terminews): Terminal based RSS reader.\n* [diagram](https://github.com/esimov/diagram): Tool to convert ascii arts into hand drawn diagrams.\n* [pody](https://github.com/JulienBreux/pody): CLI app to manage Pods in a Kubernetes cluster.\n\nNote: if your project is not listed here, let us know! :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaquestion%2Fgocui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaquestion%2Fgocui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaquestion%2Fgocui/lists"}