mosh-server: Allow startup without PTY
mosh-client: Print exceptions after the client is shut down

Otherwise the printed exception may be immediately hidden when the
terminal exits alternate screen mode.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Connection: Store the port number as a string

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Connection: Move socket creation out of setup

Once we support IPv6, we won’t be able to create a socket until we
know which address family to use.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Connection: Support IPv6 addresses

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
scripts/mosh: Let IO::Socket resolve the hostname

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
scripts/mosh: Add -6 option to connect with IPv6

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
debian/control: Recommend IO::Socket::IP

This is optional, but needed for IPv6 support.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Implement xterm mouse mode
Implement xterm extended mouse mode
xterm extended fix
Implement vt100 mouse mode (1000)

(closes #461)
network.cc: Properly close old fd on Socket assignment operator

Fix thanks to Igor Bukanov. Closes #470.
mosh-server: allow startup with PTY with zero width or height like Emacs shell.

Closes #472
Closes #473
Fix mosh-server segfault on startup when run without arguments
Revert "Fix mosh-server segfault on startup when run without arguments"

This reverts commit 578db45fbf65d4e90bba371fe8d55f0455193a27.

The NULL inputs to getaddrinfo are valid in certain cases, and at
least in the case of node, important.  The segfault happens not with
getaddrinfo, but with the error message generation below it.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
AddrInfo: Fix error message generation when node == NULL

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Connection::try_bind: Pass port argument 0 as a string

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Fix MOSH_ESCAPE_KEY validation

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
mosh-client: Catch all exceptions when ensuring client is shut down

Signed-off-by: Anders Kaseorg <andersk@mit.edu>