An output adapter renders or records values from terminal.stdout(), terminal.stderr(), and terminal.clearOutput(). Pass one through TerminalConfig.output:
const terminal = new Terminal({ input, output });
Choose an adapter based on who owns the rendered state:
HTMLElement.You can omit output when you want a headless terminal. The terminal will still record command logs and dispatch output events.