Expand description
Program resume reports through OSC 7577.
A report tells the terminal which command brings the program back after the terminal restarts. The terminal decides whether to store the record and whether to run it. A clear report removes the record.
Writers use ESC ] 7577 ; pairs ESC \. Each argv element and the cwd
are standard base64 of UTF-8. The final mac key is the SHA-256 hash of
the body before :mac=, one :, and the token from TOKEN_ENV. The
token never appears in the output.
Support is present when TOKEN_ENV is set. The protocol has no query.
See the protocol specification.
Structs§
- Program
Resume - A resume command, with borrowed text.
Constants§
- MAX_
ARGV - Largest number of
argvelements that every supporting terminal accepts. - MAX_
SEQUENCE_ LEN - Largest complete sequence, in bytes, that every supporting terminal accepts.
- TOKEN_
ENV - Environment variable that holds the terminal’s OSC 7577 token.
Functions§
- write_
program_ resume - Write one program resume report without flushing.
- write_
program_ resume_ clear - Write one clear report for
pidwithout flushing.