开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜