Detecting console is active

We are examining the port from QNX to RTP. Is there a way to detect that
the current console is on screen (similar to console_state).