Skip to content

nathan-fiscaletti/consolesize-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

consolesize-go

Sponsor Me! GoDoc Go Report Card

consolesize-go is a library that will allow you to read the size of any console window on both Unix and Windows systems.

Install

$ go get github.com/nathan-fiscaletti/consolesize-go

Usage

package main

import (
    "fmt"

    "github.com/nathan-fiscaletti/consolesize-go"
)

func main() {
    cols, rows := consolesize.GetConsoleSize()
    fmt.Printf("Rows: %v, Cols: %v\n", rows, cols)
}

About

A library for determining the size of the Console in Go (GoLang) (supports both Windows and Unix systems)

Topics

Resources

License

Stars

Watchers

Forks

Languages