raklaptudirm / terminal

Simple terminal manipulation functions

Home Page:https://laptudirm.com/x/terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terminal - Simple Terminal manipulation methods

terminal implements various functions for doing sophisticated terminal manipulation, including cursor movement, screen erasing, and others.

Installation

go get -u laptudirm.com/x/terminal

Examples

import (
        "os"
        "laptudirm.com/x/terminal"
)

// create an *terminal.Terminal from os.Stdout
term := terminal.New(os.Stdout)

// various terminal manipulation functions
term.EraseScreen()
term.HideCursor()
term.MoveCursorHome()

// all the fmt functions are also defined
term.Print("Hello, ")
term.Println("World!")
term.Printf("PI: %d", 3.1415)

Documentation

The documentation and a comprehensive list of all the manipulation functions can be found at https://laptudirm.com/x/terminal.

References

About

Simple terminal manipulation functions

https://laptudirm.com/x/terminal

License:Apache License 2.0


Languages

Language:Go 100.0%