Trigger on and capture non-printing characters
I have been trying with no success to trigger on and capture non-printing codes in my iTerm2 v3.04.
I would particularly like to trigger on specific ANSI colors, or even BEL codes. Once triggered, I'd like to even capture or preserve the colors/codes.
Is this currently possible with iTerm2, or can it be added?
I experimented for hours to try to trigger on it with Regex like the following:
(\e[.*)
But it never triggered.
if it is possible, please include an example.