Software to monitor for open files on your system in real time.
Determine if data received from a pseudo-terminal is a control sequence.