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

laptudirm.com/x/terminal

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laptudirm.com/x/terminal

Go Modules
Version
v0.4.0
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.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

FAQs

Package last updated on 28 Jan 2023

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