News for hackers. Stuff that matters.
Re:Asciinema 3.0 will be rewritten in Rust by alain_gilbert on Wednesday February 07, 2024 @11:27PM (#39298134)
https://github.com/charmbracelet/vhs/blob/main/record.go#L22

I was looking at the code, and it seems like you could put a low value for this and it would do what you want.

I did not try it though

  // sleepThreshold is the time at which if there has been no activity in the
  // tape file we insert a Sleep command
  const sleepThreshold = 500 * time.Millisecond
EDIT:

I tested it. It actually work, but their software crash, I had to patch line 153

  for lines[i] == lines[i+repeat] {
    repeat++
    if i+repeat == len(lines) {
      break
    }
  }
EDIT 2:

I actually went ahead and created a pull request to fix the bug.

https://github.com/charmbracelet/vhs/pull/446

There are no comments on this comment yet.