diff --git a/Utils/Termlib/Telnet.cc b/Utils/Termlib/Telnet.cc index 5c79e1f73c9d50b64d32b3933e2299238f02ebf9..19b90582a4b87cb6f8995daf27eb5e33f7db6bc0 100644 --- a/Utils/Termlib/Telnet.cc +++ b/Utils/Termlib/Telnet.cc @@ -27,6 +27,7 @@ //#include "Telnet.ih" // Custom includes +#include <boost/algorithm/string/case_conv.hpp> #include "../membind.hh" #include "../Logger/SenfLog.hh" @@ -456,6 +457,7 @@ v_handleOptionParameters(std::string const & data) return; if (data[0] == '\x00') { type_ = data.substr(1); + boost::algorithm::to_lower(type_); decrementRequestCounter(); } } diff --git a/Utils/Termlib/TelnetTerminal.cc b/Utils/Termlib/TelnetTerminal.cc index 2699f9caf583019a48fb7b7404168b8281e4d88c..3445d5c244b9fe80646d03d505236dbc4332920b 100644 --- a/Utils/Termlib/TelnetTerminal.cc +++ b/Utils/Termlib/TelnetTerminal.cc @@ -82,8 +82,12 @@ prefix_ void senf::term::TelnetTerminal::v_setupComplete() log << "TelnetTerminal setup failed:\n"; if (width() <= 0) log << " missing telnet client NAWS support\n"; + else + log << " size=" << width() << "x" << height() << "\n"; if (terminalType().empty()) log << " missing telnet client TERMINAL_TYPE support\n"; + else + log << " TERM=" << terminalType() << "\n"; if (! localOption(telnetopt::SUPPRESS_GO_AHEAD) || ! peerOption(telnetopt::SUPPRESS_GO_AHEAD)) log << " missing telnet clinet SGO support\n";