Skip to main content

Module TerminalLifecycle

Module TerminalLifecycle 

Source
Expand description

Cocoon → Mountain terminal.sendText / terminal.show / terminal.hide / terminal.dispose notifications. Shared atom because the four wire methods all fan through the same sky://terminal/* relay and the same provider-side PTY drive, differing only in which provider call fires (sendText vs dispose) and whether the payload carries text.

Two concerns per invocation:

  1. Notify Sky on sky://terminal/<suffix> so the xterm panel can show/hide / print text / remove the panel.
  2. Drive the underlying PTY via the TerminalProvider so the OS process sees the text / receives SIGHUP on dispose.

Functions§

TerminalLifecycle