asciinema / discussions

Public open-ended discussions about asciinema
https://github.com/orgs/asciinema/discussions
1 stars 2 forks source link

How does reverse seeking work? #221

Closed telekid closed 1 year ago

telekid commented 1 year ago

Howdy! Thanks so much for making asciinema-player open source. I've enjoyed working with it recently.

I was curious as to how reverse seeking was implemented. After a cursory look at the code, it appears that you just feed each output between the playback head and the target location (or between the start of the recording and the target location in the case of reverse seeking) to the vt. Is that true? I would never have guessed that would be fast enough to scrub backwards from the end of the Star Wars recording. I guess this is a great example of "do the simple thing first."