Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

xyproto/term

Repository files navigation

Term

Build Status

Archived

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.

Online API documentation

API documentation at godoc

Features and limitations

  • 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.

Simple example

package main

import (
	"github.com/xyproto/term"
)

func main() {
	term.Init()
	term.Clear()
	term.Say(10, 7, "hi")
	term.Flush()
	term.WaitForKey()
	term.Close()
}

General information

About

📺 Simple Terminal Interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages