kubernetes: k8s.io/kubernetes/staging/src/k8s.io/component-base/term Index | Files

package term

import "k8s.io/kubernetes/staging/src/k8s.io/component-base/term"

Index

Package Files

term.go

func TerminalSize Uses

func TerminalSize(w io.Writer) (int, int, error)

TerminalSize returns the current width and height of the user's terminal. If it isn't a terminal, nil is returned. On error, zero values are returned for width and height. Usually w must be the stdout of the process. Stderr won't work.

Package term imports 3 packages (graph). Updated 2020-08-06. Refresh now. Tools for package owners.