I am talking to a device via a Telnet connection (Telnet client from Apache), the device requires us to send a Ctrl+B to go into a certain mode. How can I send that via Java?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ctrl+B is just the byte
2.Given an
OutputStream out,out.write(2);.Function keys and the like will have escape sequences, exactly what sequence is determined by which terminal you have negotiated to emulate.