Expand description
Program Resume Protocol (OSC 7577) encoding. No terminal I/O.
A program that knows how to resume itself reports its resume command to the terminal; the terminal may run it after a restart. Reports are a hint, never a guarantee. See https://www.superlogical.com/rex/docs/build/program-resume.
Enums§
- Program
Resume Update - Projection commands for the session-owned resume adapter.
Constants§
- MAX_
ARGV_ ELEMENTS - Maximum
argvelements we emit; terminals must accept at least this many. - MAX_
REPORT_ LEN - Maximum report length we emit; terminals must accept at least this much.
- OSC_
PROGRAM_ RESUME - OSC number for the Program Resume Protocol.
- RESUME_
TOKEN_ ENV - Environment variable carrying the per-terminal resume token.
Functions§
- current_
pid - Current process id for the
pidkey. - current_
unix_ time - Current Unix time in seconds for the
timekey. - encode_
clear - Encode a record removal for
pidmade attime. - encode_
report - Encode a resume report for
pidmade attime. - resume_
token - Read the resume token from the process environment.
- validate_
target - Validate a resume target without encoding it.