# README
ansigo
A library to make the controlling of ANSI terminal emulators' fonts, colors, and cursors, a little less painful — also can be used to detect key presses in the terminal.
Documentation can be found at https://pkg.go.dev/github.com/solidiquis/ansigo
Installation
$ go get github.com/solidiquis/ansigo
Demo
Moving the cursor around the screen Vim-style:
package main
import (
ansi "github.com/solidiquis/ansigo"
)
func main() {
ansi.EraseScreen()
ansi.CursorSetPos(0, 0)
stdin := make(chan string, 1)
go ansi.GetChar(stdin)
for {
switch <-stdin {
case "h":
ansi.CursorBackward(1)
case "j":
ansi.CursorDown(1)
case "k":
ansi.CursorUp(1)
case "l":
ansi.CursorForward(1)
}
}
}

# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EchoStdin prints user input.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetChar unbuffers stdin and stops the printing of user stdin input.
No description provided by the author
No description provided by the author
RestoreTerminalSettings undos the effects of GetChar as well as other window modifications caused by various functions throughout this library such as CursorHide.
No description provided by the author
TerminalDimensions returns the the columns and rows of the current active window.
Unbuffers stdin of current terminal and specifies complete input length as 1.
No description provided by the author
Turns off user input echo.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author