Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

tmuxtest.StartPTYProcess

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
tmuxtest
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/tmuxtest/pty_process.go
StartPTYProcess ( ctx : context.Context , t : testing.TB , binary : string , arguments : []string , environment : []string ) → *PTYProcess
function [source]
function [source]
StartPTYProcess

StartPTYProcess starts binary with a harness-owned controlling terminal and registers bounded cleanup with t. Its start context owns the child lifetime: canceling ctx terminates the child. Arguments and environment are copied. A nil environment inherits the current process environment; a non-nil empty environment remains empty. binary runs directly without a shell. The PTY backend is supported on Linux only; unsupported platforms call testing.TB.Fatal. Setup failures also call testing.TB.Fatal.

0 declared, 0 inherited

Esc

Type to search.