pub const S2C_EXITED: u8 = 0x08;
The PTY’s subprocess has exited but the terminal state is retained. Clients can still read/scroll the last frame. Send C2S_CLOSE to dismiss.