mconnect-io — converse with a line-protocol network server.
mconnect-io
mconnect-io is a UCSPI-TCP/UCSPI-SSL client program that enables UNIX convention tools to have a conversation with a network server that speaks an Internet line-based protocol with CR+LF newlines. It is the internal workhorse of mconnect(1). It expects to be run via a program such as tcpclient(1) which makes the network connection to the server and sets up UCSPI environment variables.
Everything that it receives from its standard input, it sends to the network server, adding a CR at the end of every line (as if by addcr(1)). Everything that it receives from the network server, it sends to its standard output.
icrnl -onlcr -ocrnl mode, so that CR (often what a terminal's ⮠ Return key really sends) is translated to LF on terminal input and both CR and LF are left as-is on terminal output.
mconnect-io takes no steps to ensure this, and relies upon something else such as stty(1) having configured the terminal device.