1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-25 13:48:50 +08:00

Updated Termbox API (markdown)

Jakub Sobon 2019-02-24 02:36:29 -05:00
parent 044ef4e82d
commit 81b5c450ee

@ -23,7 +23,7 @@ This interface is used to provide optional arguments to **New**.
### [termbox.ColorMode](https://github.com/mum4k/termdash/blob/614d6ed82014e343ca40f25ee1bed8dfbd452830/terminal/termbox/termbox.go#L45-L51)
Used to set the color mode in which the terminal will be initialised. The available color modes are documented in the [[Terminalapi API|terminalapi-api]]. The following example sets the color mode to support 256 colors.
Used to set the color mode in which the terminal will be initialised. The available color modes are documented in the [[Terminal API|terminal-api]]. The following example sets the color mode to support 256 colors.
```go
tb, err := termbox.New(termbox.ColorMode(terminalapi.ColorMode256))