开发者

Encapsulating CTRL-SHIFT-A-D in a java String

开发者 https://www.devze.com 2023-01-23 09:29 出处:网络
I use a ssh library with java to connect to a server. I want to detach a GNU Screen with CTRL-SHIFT-A-D, why I ne开发者_运维知识库ed to send this sequence to the server.

I use a ssh library with java to connect to a server. I want to detach a GNU Screen with CTRL-SHIFT-A-D, why I ne开发者_运维知识库ed to send this sequence to the server.

Can someone tell me how I can write this in a Java String? I looked through the unicode and ascii tables but I couldn't find a hint.

Sincerely, Heinrich


Check the ASCII table.

CTRL-A is 2
CTRL-D is 4

Is there a reason you need a SHIFT? In my terminal ssh is terminated with ctrl-a ctrl-d.

0

精彩评论

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