You are not logged in

Could have a special mode for teseq/reseq where it doesn't emit : or . lines for anything that matches a terminfo entry, and reseq replays by tputting the recorded matches (later, perhaps even substituting for missing features in the replay term, and maybe even adjusting for things like writes at the end of the line, etc - could do that for normal replay mode, too, with a special flag).

Possibly could be a completely separate program, one that might support generating output in terms of series of printf and tput invocations. If part of teseq proper, it'll probably need to identify the full sequence that matched, as many terminfo sequences consist of more than one actual ISO-2022 escape sequence.

Stage one would be to recognize static sequences; step two would be to intelligently translate for parameterized strings.

That is: by translating each conditional branch to (x|y) patterns, and substituting \w+ or \d+ for numeric or string parameters, it could be possible to generate regular expressions to match against data, to find the terminfo sequence. With an extended regex engine, it could even be possible to detect what parameter had been used.