apiserver: k8s.io/apiserver/pkg/util/term Index | Files

package term

import "k8s.io/apiserver/pkg/util/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) and is imported by 25 packages. Updated 2019-03-28. Refresh now. Tools for package owners.