Skip to main content

Module program_status

Module program_status 

Source
Expand description

Program status reports and feature detection through OSC 7501.

Each report replaces one terminal record. An absent ID selects the root. A clear report removes its record and descendants; clearing the root removes all records. Screen switches leave records intact. Done and error records survive process exit and the next shell prompt.

Writers use ESC ] 7501 ; pairs ESC \. Messages and titles are standard base64 of UTF-8. Unsupported terminals ignore these sequences.

See the protocol specification.

Structs§

ProgramStatus
A complete OSC 7501 report, with borrowed text.
ProgramStatusKind
What a blocked program needs from the user.
ProgramStatusState
State of a program or one of its tasks.

Constants§

REQUEST_PROGRAM_STATUS
Query OSC 7501 support. The reply starts with ? and may list accepted states and kinds.

Functions§

write_program_status
Write one complete program status report without flushing.