Please consider using these Go packages instead, which should cover the same functionality:
- vt100 for coloring text, reading keys or drawing terminal "graphics".
- textoutput for coloring text, with tags like
<blue>
. - readline for a pure-Go implementation of similar functionality to the C
readline
library. - ask for asking users simple questions on the terminal.
- Provides an easy way to get started drawing colorful characters at any position (X,Y) in a terminal.
- Uses ncurses and the gdamore/tcell module.
- Is simple to use, but vt100 may be more complete.
package main
import (
"github.com/xyproto/term"
)
func main() {
term.Init()
term.Clear()
term.Say(10, 7, "hi")
term.Flush()
term.WaitForKey()
term.Close()
}
- License: MIT
- Author: Alexander F. Rødseth <rodseth@gmail.com>
- Version: 0.3.0