开发者

Sending a CTRL B with java

开发者 https://www.devze.com 2022-12-16 02:56 出处:网络
I am talking to a device via a Telnet connection (Telnet client from Apache), the device requires us to send a C开发者_StackOverflowtrl+B to go into a certain mode. How can I send that via Java?Ctrl+B

I am talking to a device via a Telnet connection (Telnet client from Apache), the device requires us to send a C开发者_StackOverflowtrl+B to go into a certain mode. How can I send that via Java?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消