Skip to content

Support interactive Dash on caller-owned socket streams - #2

Open
demrom wants to merge 23 commits into
holzschu:masterfrom
demrom:feature/socket-command-input
Open

demrom wants to merge 23 commits into
holzschu:masterfrom
demrom:feature/socket-command-input

Conversation

@demrom

@demrom demrom commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Dash can print a prompt on caller-owned socket streams and then exit without reading a command. This adds opt-in editing with ASHELL_IOS_SOCKET_INPUT=1 and optional embedding callbacks for foreground input, cancellation and resize. Foreground commands receive their original control bytes. The libedit patch and build instructions are included.

The update restores the foreground cancellation target and saved interactive mode when a pipeline unwinds, including producer errors after already-started consumers finish. The optional exchange callback receives foreground command IDs without socket opt-in, so an embedding terminal can target Ctrl-C. Prompt Ctrl-C uses Dash's signal handler. Native pipeline consumers receive the same shell variables and command-prefix assignments as direct commands. Unset variables are excluded from child environments, so worker launches receive valid name=value entries.

The public Simulator consumers pass UTF-8 input, foreground EOF, raw input, cancellation, resize and repeated shell reuse, plus pipeline environment and error-unwind regressions. App integration in Simulator passes full-screen TUI startup, two interrupts and recovery in the same shell.

The app stack also requires the separate login-marker fix and holzschu/ios_system#201; the embedding host policy is holzschu/ios_system#204.

On the iPhone, the composed Dash handled SSH prompt arithmetic, pipelines and burst input followed by EOF, and Vim retained raw Ctrl-C before an explicit status-0 quit. The TUI checks used a server-only prompt and skipped the user profile.

@demrom demrom changed the title Support socket command input with optional foreground hooks Support interactive Dash on caller-owned socket streams Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant