Binary package “termdebug” in ubuntu jammy

Tools for recording and replaying terminal I/O

 Termdebug is a set of utilities to record and replay the input and output of
 terminal programs. Its main goal is to aid in developing and debugging
 terminal programs.