Terminal emulation library.