Telnet++  3.1.0.2
A C++ library for interacting with Telnet streams
Classes
telnetpp::options::terminal_type Namespace Reference

An implementation of the standard Telnet Terminal-Type option. More...

Classes

class  client
 An implementation of the client side of the Telnet Terminal Type option. More...
 

Detailed Description

An implementation of the standard Telnet Terminal-Type option.

Overview
This option is used to exchange the name(s) of the current terminal between server and client.
Server and Client
It may seem unintuitive at first, but it is the telnetpp::options::terminal_type::client that requests the terminal type. Normally, this client would be part of a server application. However, since it is the client that "owns" the data, it implements the server portion of the option. At least, that's the only way I can get my head around it.
See also
https://www.ietf.org/rfc/rfc1091.txt