Trust system's forkpty() from -lutil.

These days, it should be reliable, and get updated on time.
Provide the errno on forkpty() errors.
Use terse automake rules.

This means you can actually see what's wrong during compiles.
Allow autotest to colorize its output.
Recognize and ignore ESC % G (switch to UTF-8).

Probably should set the session's charset.
Fix an uninitialized read.
Use a static buffer during resizes.

It has a small cap, and unlike the heap, we know for sure there's space on
the stack.
Fix a possible crash during terminal resize.
Fix another possible crash during terminal resize.
Don't eat the last continued line on resize.

Not sure why this can happen, though.
Enable assertions in release builds.
Testsuite: cope with shells without "echo -e".
Use IPPROTO_TCP instead of SOL_TCP.

The latter is missing on Solaris.
Return -1 as an error from run().

0 is a valid descriptor number, even if it shouldn't happen for us.
Send TCP keepalives every 15 minutes.

Stops broken NAT routers from dropping the connection when idle.
New command: #loginputformat <prefix> <suffix>
Use IPPROTO_IP instead of SOL_IP.  Because Solaris.