• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

_demos/H27-Oct-2018-

AUTHORSH A D27-Oct-2018101

LICENSEH A D27-Oct-20181 KiB

README.mdH A D27-Oct-20183.7 KiB

api.goH A D27-Oct-201812.7 KiB

api_common.goH A D27-Oct-20184.3 KiB

api_windows.goH A D27-Oct-20186 KiB

collect_terminfo.pyH A D27-Oct-20182 KiB

escwait.goH A D27-Oct-2018373

escwait_darwin.goH A D27-Oct-2018329

syscalls.goH A D27-Oct-2018773

syscalls_darwin.goH A D27-Oct-2018753

syscalls_darwin_amd64.goH A D27-Oct-2018775

syscalls_dragonfly.goH A D27-Oct-2018735

syscalls_freebsd.goH A D27-Oct-2018735

syscalls_linux.goH A D27-Oct-2018828

syscalls_netbsd.goH A D27-Oct-2018733

syscalls_openbsd.goH A D27-Oct-2018733

syscalls_windows.goH A D27-Oct-20181.5 KiB

termbox.goH A D27-Oct-201811.3 KiB

termbox_common.goH A D27-Oct-2018994

termbox_windows.goH A D27-Oct-201821.9 KiB

terminfo.goH A D27-Oct-20185.6 KiB

terminfo_builtin.goH A D27-Oct-20183.3 KiB

README.md

1[![GoDoc](https://godoc.org/github.com/nsf/termbox-go?status.svg)](http://godoc.org/github.com/nsf/termbox-go)
2
3## Termbox
4Termbox 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.
5
6### Installation
7Install and update this go package with `go get -u github.com/nsf/termbox-go`
8
9### Examples
10For examples of what can be done take a look at demos in the _demos directory. You can try them with go run: `go run _demos/keyboard.go`
11
12There are also some interesting projects using termbox-go:
13 - [godit](https://github.com/nsf/godit) is an emacsish lightweight text editor written using termbox.
14 - [gotetris](https://github.com/jjinux/gotetris) is an implementation of Tetris.
15 - [sokoban-go](https://github.com/rn2dy/sokoban-go) is an implementation of sokoban game.
16 - [hecate](https://github.com/evanmiller/hecate) is a hex editor designed by Satan.
17 - [httopd](https://github.com/verdverm/httopd) is top for httpd logs.
18 - [mop](https://github.com/mop-tracker/mop) is stock market tracker for hackers.
19 - [termui](https://github.com/gizak/termui) is a terminal dashboard.
20 - [termloop](https://github.com/JoelOtter/termloop) is a terminal game engine.
21 - [xterm-color-chart](https://github.com/kutuluk/xterm-color-chart) is a XTerm 256 color chart.
22 - [gocui](https://github.com/jroimartin/gocui) is a minimalist Go library aimed at creating console user interfaces.
23 - [dry](https://github.com/moncho/dry) is an interactive cli to manage Docker containers.
24 - [pxl](https://github.com/ichinaski/pxl) displays images in the terminal.
25 - [snake-game](https://github.com/DyegoCosta/snake-game) is an implementation of the Snake game.
26 - [gone](https://github.com/guillaumebreton/gone) is a CLI pomodoro® timer.
27 - [Spoof.go](https://github.com/sabey/spoofgo) controllable movement spoofing from the cli
28 - [lf](https://github.com/gokcehan/lf) is a terminal file manager
29 - [rat](https://github.com/ericfreese/rat) lets you compose shell commands to build terminal applications.
30 - [httplab](https://github.com/gchaincl/httplab) An interactive web server.
31 - [tetris](https://github.com/MichaelS11/tetris) Go Tetris with AI option
32 - [wot](https://github.com/kyu-suke/wot) Wait time during command is completed.
33 - [2048-go](https://github.com/1984weed/2048-go) is 2048 in Go
34 - [jv](https://github.com/maxzender/jv) helps you view JSON on the command-line.
35 - [pinger](https://github.com/hirose31/pinger) helps you to monitor numerous hosts using ICMP ECHO_REQUEST.
36 - [vixl44](https://github.com/sebashwa/vixl44) lets you create pixel art inside your terminal using vim movements
37 - [zterm](https://github.com/varunrau/zterm) is a typing game inspired by http://zty.pe/
38 - [gotypist](https://github.com/pb-/gotypist) is a fun touch-typing tutor following Steve Yegge's method.
39 - [cointop](https://github.com/miguelmota/cointop) is an interactive terminal based UI application for tracking cryptocurrencies.
40 - [pexpo](https://github.com/nnao45/pexpo) is a terminal sending ping tool written in Go.
41 - [jid](https://github.com/simeji/jid) is an interactive JSON drill down tool using filtering queries like jq.
42
43### API reference
44[godoc.org/github.com/nsf/termbox-go](http://godoc.org/github.com/nsf/termbox-go)
45