to_json() capture_pane()
capture pane content and save to file