Component relationships
Native application boundary
Prism extends Windows Terminal’s object-oriented C++/WinRT and WinUI application. It adds product commands, presentation-state transfer, an in-window settings workflow and packaging around the inherited terminal engine.
Command grammar and dispatch
The native wtd-shell helper owns the command grammar; shell wrappers supply the working directory and originating session. It validates the full request before serializing a typed OSC 9001 record into the terminal stream. The terminal control claims the request sequence and hands it to the application dispatcher.
A request may update the current tab, open a background tab, restart its shell connection or open settings. New tabs preserve the issuing tab’s focus. A shell change starts a new connection; it is not a migration of the old shell process.
Presentation state across window transfers
The tab and its terminal control retain presentation state. Startup actions serialize the tab style when content moves; initialization and content attachment restore it in the destination. Tab titles can be explicitly set or reset to reveal the shell’s normal title.
Selected tabs use a contrasting diagonal pattern while terminal content keeps a solid background. Standard OSC 10/11 queries return the presentation colours actually displayed. The terminal no longer pushes unsolicited colour-setting sequences into client input.
Settings lifecycle
The settings editor is hosted inside the terminal window. Save, Save and close, and Discard changes distinguish editing from persistence. The sheet uses the application’s settings-change notifications rather than creating an independent settings process.
Packaging and attribution
The release pipeline assembles the application, WinUI runtime dependency and command-registration helper into one installer. Microsoft Windows Terminal supplies the terminal engine, renderer, tabs and panes under the MIT licence; Prism’s changes concern workflow integration, state consistency and deployment around that foundation.