Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
telnetmode(mode = nil)
public
Set telnet command interpretation on (mode
== true) or off (mode == false), or return the current value
(mode not provided). It should be on for true telnet sessions,
off if using Net::Telnet to connect to a
non-telnet service such as SMTP.
Show source
def telnetmode(mode = nil)
case mode
when nil
@options["Telnetmode"]
when true, false
@options["Telnetmode"] = mode
else
raise ArgumentError, "argument must be true or false, or missing"
end
end