{"id":13410145,"url":"https://github.com/nsf/termbox-go","last_synced_at":"2025-05-16T01:03:40.948Z","repository":{"id":2216266,"uuid":"3165783","full_name":"nsf/termbox-go","owner":"nsf","description":"Pure Go termbox implementation","archived":false,"fork":false,"pushed_at":"2022-02-08T10:12:39.000Z","size":376,"stargazers_count":4720,"open_issues_count":50,"forks_count":374,"subscribers_count":93,"default_branch":"master","last_synced_at":"2025-05-09T00:56:38.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://godoc.org/github.com/nsf/termbox-go","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/nsf.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":"2012-01-12T21:03:03.000Z","updated_at":"2025-05-08T15:07:45.000Z","dependencies_parsed_at":"2022-07-21T00:14:44.632Z","dependency_job_id":null,"html_url":"https://github.com/nsf/termbox-go","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsf%2Ftermbox-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsf%2Ftermbox-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsf%2Ftermbox-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsf%2Ftermbox-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsf","download_url":"https://codeload.github.com/nsf/termbox-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448578,"owners_count":22072764,"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-07-30T20:01:05.207Z","updated_at":"2025-05-16T01:03:40.888Z","avatar_url":"https://github.com/nsf.png","language":"Go","funding_links":[],"categories":["HarmonyOS","命令行","Go","Misc","Command Line","CUI","Build Automation","\u003cspan id=\"命令行-command-line\"\u003e命令行 Command Line\u003c/span\u003e","高级控制台UI`用于构建控制台应用程序和控制台用户界面的库.`","高级控制台UI"],"sub_categories":["Windows Manager","高级控制台用户界面","Advanced Console UIs","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","标准 CLI"],"readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/nsf/termbox-go.svg)](https://pkg.go.dev/github.com/nsf/termbox-go)\n![Build](https://github.com/nsf/termbox-go/actions/workflows/test-ubuntu.yml/badge.svg)\n\n## IMPORTANT\n\nThis library is somewhat not maintained anymore. But I'm glad that it did what I wanted the most. It moved people away from \"ncurses\" mindset and these days we see both re-implementations of termbox API in various languages and even possibly better libs with similar API design. If you're looking for a Go lib that provides terminal-based user interface facilities, I've heard that [gdamore/tcell](https://github.com/gdamore/tcell) is good (never used it myself). Also for more complicated interfaces and/or computer games I recommend you to consider using HTML-based UI. Having said that, termbox still somewhat works. In fact I'm writing this line of text right now in godit (which is a text editor written using termbox-go). So, be aware. Good luck and have a nice day.\n\n## Termbox\nTermbox is a library that provides a minimalistic API which allows the programmer to write text-based user interfaces. The library is crossplatform and has both terminal-based implementations on \\*nix operating systems and a winapi console based implementation for windows operating systems. The basic idea is an abstraction of the greatest common subset of features available on all major terminals and other terminal-like APIs in a minimalistic fashion. Small API means it is easy to implement, test, maintain and learn it, that's what makes the termbox a distinct library in its area.\n\n### Installation\nInstall and update this go package with `go get -u github.com/nsf/termbox-go`\n\n### Examples\nFor examples of what can be done take a look at various examples in the `_demos` directory. You can try them with go run: `go run _demos/keyboard.go`\n\nThere are also some interesting projects using termbox-go:\n - [godit](https://github.com/nsf/godit) is an emacsish lightweight text editor written using termbox.\n - [gotetris](https://github.com/jjinux/gotetris) is an implementation of Tetris.\n - [sokoban-go](https://github.com/rn2dy/sokoban-go) is an implementation of sokoban game.\n - [hecate](https://github.com/evanmiller/hecate) is a hex editor designed by Satan.\n - [httopd](https://github.com/verdverm/httopd) is top for httpd logs.\n - [mop](https://github.com/mop-tracker/mop) is stock market tracker for hackers.\n - [termui](https://github.com/gizak/termui) is a terminal dashboard.\n - [termloop](https://github.com/JoelOtter/termloop) is a terminal game engine.\n - [xterm-color-chart](https://github.com/kutuluk/xterm-color-chart) is a XTerm 256 color chart.\n - [gocui](https://github.com/jroimartin/gocui) is a minimalist Go library aimed at creating console user interfaces.\n - [dry](https://github.com/moncho/dry) is an interactive cli to manage Docker containers.\n - [pxl](https://github.com/ichinaski/pxl) displays images in the terminal.\n - [snake-game](https://github.com/DyegoCosta/snake-game) is an implementation of the Snake game.\n - [gone](https://github.com/guillaumebreton/gone) is a CLI pomodoro® timer.\n - [Spoof.go](https://github.com/sabey/spoofgo) controllable movement spoofing from the cli.\n - [rat](https://github.com/ericfreese/rat) lets you compose shell commands to build terminal applications.\n - [httplab](https://github.com/gchaincl/httplab) An interactive web server.\n - [wot](https://github.com/kyu-suke/wot) Wait time during command is completed.\n - [2048-go](https://github.com/1984weed/2048-go) is 2048 in Go.\n - [jv](https://github.com/maxzender/jv) helps you view JSON on the command-line.\n - [pinger](https://github.com/hirose31/pinger) helps you to monitor numerous hosts using ICMP ECHO_REQUEST.\n - [vixl44](https://github.com/sebashwa/vixl44) lets you create pixel art inside your terminal using vim movements.\n - [zterm](https://github.com/varunrau/zterm) is a typing game inspired by http://zty.pe/.\n - [gotypist](https://github.com/pb-/gotypist) is a fun touch-typing tutor following Steve Yegge's method.\n - [cointop](https://github.com/miguelmota/cointop) is an interactive terminal based UI application for tracking cryptocurrencies.\n - [pexpo](https://github.com/nnao45/pexpo) is a terminal sending ping tool written in Go.\n - [jid](https://github.com/simeji/jid) is an interactive JSON drill down tool using filtering queries like jq.\n - [nonograminGo](https://github.com/N0RM4L15T/nonograminGo) is a nonogram (aka. picross) in Go.\n - [tower-of-go](https://github.com/kjirou/tower-of-go) is a tiny maze game that runs on the terminal.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsf%2Ftermbox-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsf%2Ftermbox-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsf%2Ftermbox-go/lists"}