google / goterm

Go Terminal library with PTY support and colors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CircleCI

The term package implements PTY creation and termios get/set attributes. It also contains some convenience functions for colors, SSH <> termios translations, readCh , reading passwords etc.

The PTY and termios parts are Linux specific.

Get the code

go get github.com/google/goterm/term

package main

import (
  "fmt"

  "github.com/google/goterm/term"
)

func main() {
  fmt.Println(term.Blue("Hello blue world"))
}

About

Go Terminal library with PTY support and colors

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%