How can I send a space char (without Carriage Return) to a Telnet Session?
You can send a space char using setCommandSuffix(String) method that is available in the com.adventnet.telnet.TelnetSession class. The default command suffix is set to “\n”. To simulate sending a space char, you have to set the command suffix to “”, i.e., empty string before sending the space char.