Skip to content

v2.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 10:58
v2.2.0
f510168

Resume your programs!

This new protocol for Rex came out 12 hours ago and we support it already 💪🏻

Program Resume Protocol (OSC 7577)

Demo

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!

Other stuff


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.