Create loopable clips using startcast and stopcast
mainTo create a clean, loopable GIF (e.g., for a README) without the slow startup or final exit, use the startcast and stopcast steps within your program file. This allows you to bracket only the interesting parts of the session.
Clip Control Steps
startcast: Drops all previously captured frames and re-bases the clock to the current moment. It also triggers a window resize to force a full repaint (essential forratatuiapps to ensure the clip doesn't start with a blank grid).stopcast: Finalizes the recording, excluding any subsequent actions (like quitting the app).
Example Workflow
- Use
--colsand--rowsto drive a smaller terminal size. - Use
startcastat the beginning of the 'hero' sequence. - Use
stopcastat the end of the sequence. - Use
aggto render the resulting cast to a GIF.