Repository navigation
Resume your programs!
This new protocol for Rex came out 12 hours ago and we support it already 💪🏻
Program Resume Protocol (OSC 7577)
Bubble Tea programs can now tell the terminal how to bring them back after it restarts. Set ProgramResume on your view with the command that restarts your program, and optionally the folder to run it in:
func (m model) View() tea.View {
v := tea.NewView(m.render())
if !m.quitting {
v.ProgramResume = &tea.ProgramResume{
Args: []string{m.exe, "--session", m.sessionID},
Dir: m.dir,
}
}
return v
}Put everything the program needs to pick up where it left off in the command, like a session ID or the path to a state file.
Read the spec for all the details.
Have a nice week,
Charm ⭐
Changelog
New!
- bb45cb6: feat: program resume protocol (OSC 7577) (#1908) (@andrinoff)
Other stuff
- f510168: v2.2.0 (@andrinoff)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.

