@ -55,14 +55,6 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
@@ -55,14 +55,6 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
This is the second part of a series of tutorials on creating a [terminal-based](https://en.wikipedia.org/wiki/Text-based_user_interface) [Tetris](https://en.wikipedia.org/wiki/Tetris) clone with [Go](https://golang.org).
For a complete implementation of a Tetris clone in Go, see [netris](https://git.sr.ht/~tslocum/netris).
For a complete implementation of a Tetris clone in Go, see [netris](https://gitlab.com/tslocum/netris).
[](https://github.com/rivo/tview/tree/master/demos/presentation)
This is an introduction to using [tview](https://github.com/rivo/tview) (or [cview](https://git.sr.ht/~tslocum/cview)) to create rich terminal-based user interfaces with [Go](https://golang.org).
This is an introduction to using [tview](https://github.com/rivo/tview) (or [cview](https://gitlab.com/tslocum/cview)) to create rich terminal-based user interfaces with [Go](https://golang.org).
## Primitives
@ -210,7 +210,7 @@ To display a primitive (and its contents), we call [Application.SetRoot](https:/
@@ -210,7 +210,7 @@ To display a primitive (and its contents), we call [Application.SetRoot](https:/
This function has two arguments, a primitive which will become the root of the screen, and a boolean which controls whether the primitive will be resized to fit the screen.
In this example, the root is a Grid containing a label, an input and a submit button. For a more complex example, see [netris](https://git.sr.ht/~tslocum/netris).
In this example, the root is a Grid containing a label, an input and a submit button. For a more complex example, see [netris](https://gitlab.com/tslocum/netris).