term

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TerminalSize

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

TerminalSize 返回用户终端的当前宽度和高度。如果它不是一个终端,则返回 nil。 在错误情况下,返回零值的宽度和高度。 通常 w 必须是进程的 stdout。Stderr 不起作用。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL