Or there any other way to do it? Googling brings up nothing ( I tried for years ).
If you don't what iterm2 means by "instant replay": https://www.iterm2.com/features.html - basically like desktop video capturing, only in text - so the user can copy-paste from the captured history
--edit-- An example for clarification: I edit a file in vim ; close vim ; accidentally delete the file ; I start "instant replay" and find what the terminal emulator looked like when I was editing the file.
mlterm
( sourceforge.net/projects/mlterm ) offers the ability to have history be recorded inttyrec
format which does allow you to play-back sessions with copy/paste intact.