Arcane OS Docs Development only

Reference

terminal.exit

A terminal process exits and the host removes its session.

  • Reference

This focused page is derived from the mechanically checked full event inventory.

Subscribe

const unsubscribe = Arcane.events.on('terminal.exit', function handleTerminalExit(data) {
    // Read only the documented fields from data here.
    console.info('Received terminal.exit.');
});

// Stop listening when this page no longer needs the event.
function stopListeningForTerminalExit() {
    unsubscribe();
}

globalThis.addEventListener('pagehide', stopListeningForTerminalExit, {once: true});

Delivery

Live, future-only terminal session notification.

Hosts

Core-backed Arcane Terminal and Android Arcane Terminal hosts.

When it fires

A terminal process exits and the host removes its session.

Event data

sessionId identifies the terminal session; exitCode is the process exit code when available; signal is the terminating signal name or null.

Reference group

Events

Repository and reviewed source access