spawn

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package spawn launches a fresh cux session from the panel. cuxdeck starts `cux` on a pseudo-terminal it owns, in the chosen directory — which is exactly what makes cux open its own attach socket, so the new session immediately shows up in the registry as attachable and the existing terminal bridge can drive it.

The PTY here is only there to make cux believe it has a terminal (it checks isatty); cuxdeck drains it and never reads it for content — the real mirror is cux's own attach socket. We size it large so a phone attaching later always wins the min-size negotiation and the terminal isn't clamped to 80x24.

The spawned cux is a child of the long-lived cuxdeck daemon, so it outlives the phone that started it — close the tab, the session keeps running, exactly like starting cux in a terminal and walking away.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(dir string, argv []string) (int, error)

Start launches `cux argv...` in dir on a fresh PTY and returns the child PID. dir must be an existing absolute directory. argv defaults to the flags a typical unattended run uses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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