~dricottone/image2ascii

ref: 5faf638733a4ce85ccebac8e4bdeebdd216839fc image2ascii/vendor/github.com/wayneashleyberry/terminal-dimensions/readme.md -rw-r--r-- 983 bytes
5faf6387 — qeesung add convert test case 6 years ago

GoDoc Go Report Card Build Status Coverage Status

go get github.com/wayneashleyberry/terminal-dimensions
package main

import (
	"fmt"

	terminal "github.com/wayneashleyberry/terminal-dimensions"
)

func main() {
	x, _ := terminal.Width()
	y, _ := terminal.Height()
	fmt.Printf("Terminal is %d wide and %d high", x, y)
}