PROC_CONSOLE - find the attached tty or visible console
int PROC_CONSOLE (const struct fb_info *info);
info frame buffer info structure
Finds the tty attached to the process or visible console if the process is not directly attached to a tty (e.g. remote user) for device info. Returns -1 errno on error, or tty/visible console number on success.