RingBuffer for Terminal Replay: Restoring State After Reconnect

Each TermOnMac PTY session keeps a per-session RingBuffer so the iPhone can replay the current terminal state after a network drop, with incremental offset-based delta delivery.