core: Add info about tty mode etc to 'getinfo ttyinfo'