Move tty specific functionality into its own function.
Adding forward declaration for con_tty.
Now that there is a dedicated con_tty function only run con when fd
is not a tty.