With ssh_sock initialized to zero, if the connect fails, stdin was closed, preventing ANSI and curses modes from functioning.
With ssh_sock initialized to zero, if the connect fails, stdin was closed, preventing ANSI and curses modes from functioning.