Hacker News new | past | comments | ask | show | jobs | submit login

I don't think you can reasonably use expect with TUIs, but you can use this with TUIs.



I tried to contrast to `expect` in a couple of my other responses, but yeah this is my sense too after looking briefly at `expect` - that ht always transparently sets up a terminal for you under the hood and you interact with that so you can always grab a screenshot of any terminal UI.

I don’t think `expect` is targeted at this use case (though I am only learning about `expect` right now so could be wrong)


Is it fair to say that 'expect vs ht' is the same as 'curl vs headless browser'?


I believe it’s a pretty good analogy, yes.


fish-shell does for its integration tests, and yes, it’s brutal :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: