Source File
tty.go
Belonging Package
github.com/charmbracelet/ultraviolet
package uvimport ()// OpenTTY opens the terminal's input and output file descriptors.// It returns the input and output files, or an error if the terminal is not// available.//// This is useful for applications that need to interact with the terminal// directly while piping or redirecting input/output.func () (, *os.File, error) {return openTTY()}// Suspend suspends the current process group.func () error {return suspend()}// NotifyWinch sets up a channel to receive window size change signals and any// other signals needed. This is a drop-in replacement for os/signal.Notify to// ensure that SIGWINCH is included.//// On Windows, this will be a no-op for SIGWINCH, but other signals may still// be handled.func ( chan os.Signal, ...os.Signal) {notifyWinch(, ...)}// NotifyWinchContext sets up a channel to receive window size change signals// and any other signals needed, with context cancellation support. This is a// drop-in replacement for os/signal.NotifyContext to ensure that SIGWINCH is// included.//// On Windows, this will be a no-op for SIGWINCH, but other signals may still// be handled.func ( context.Context, ...os.Signal) (context.Context, context.CancelFunc) {return notifyWinchContext(, ...)}
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)