pub fn capture_terminal( options: TerminalCaptureOptions, ) -> Result<TerminalCapture, TerminalCaptureError>