platform

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const IsWindows = false

IsWindows is false on non-Windows platforms.

Variables

This section is empty.

Functions

func DefaultIsTerminal

func DefaultIsTerminal() bool

DefaultIsTerminal returns true if both stdin and stdout are terminals, false otherwise.

func DefaultOnSizeChanged

func DefaultOnSizeChanged(f func())

DefaultOnSizeChanged calls the provided function when the terminal size changes.

func DefaultOnWidthChanged

func DefaultOnWidthChanged(f func())

DefaultOnWidthChanged calls the provided function when the terminal width changes.

func GetScreenSize

func GetScreenSize() (width int, height int)

GetScreenSize returns the width/height of the terminal or -1,-1 or error

func SuspendProcess

func SuspendProcess()

SuspendProcess suspends the process with SIGTSTP, then blocks until it is resumed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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