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

xyproto/term

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4f040d9 · Sep 18, 2019

History

66 Commits
Sep 16, 2019
Sep 16, 2019
Sep 16, 2019
Mar 12, 2019
Mar 9, 2019
Sep 18, 2019
Mar 9, 2019
Apr 7, 2019
Apr 7, 2019
Sep 16, 2019
Sep 16, 2019
Mar 9, 2019
Mar 9, 2019
May 1, 2018

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