Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

laptudirm.com/x/ansi

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laptudirm.com/x/ansi

Go Modules
Version
v0.0.0-20220617111406-f4f5983f16f2
Version published
Created
Source

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.NewTerminal(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

FAQs

Package last updated on 17 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts