package
Version:
v2.1.1+incompatible
Opens a new window with list of versions in this module.
Published: May 27, 2017
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ESC is the ASCII code for escape character
func GetTermSize() (width, height int, err error)
GetTermSize returns the dimensions of the given terminal.
the code is stolen from "golang.org/x/crypto/ssh/terminal"
Writer is a buffered the writer that updates the terminal.
The contents of writer will be flushed when Flush is called.
New returns a new Writer with defaults
Flush flushes the underlying buffer
Write save the contents of b to its buffers. The only errors returned are ones encountered while writing to the underlying buffer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.