I am using Jsch to connect sshd server and I am new in this area. I successfully send non-control character such as, a, b …so-on. However, I need to send “Esc” key command (Control Character) to perform specific task. According to the link, I tried several ways (by passing “27”, “0033”, “0x1b”, and “^[“) but did not work.
I have found a link to use sshj. Is there way to send Control Character using Jsch?
Thanks M.F.H
Thanks. I have figured out this issue a little different way. I am sending character to VT100 terminal using JSCH to perform specific tasks. In the code, all inputs are converted to array of byte but the ASCII control character cannot be sent as a array of byte to VT100 terminal. According to post, I have to send control character as ASCII code (INT). Such as, If VT100 terminal needs ESC command then 27 (INT) must be written in the SSH Session input stream. ESC’s ASCII code is 27. (Before, I sent 27 as string and converted to array of byte.)