Reputation: 12140
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 need 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
Upvotes: 0
Views: 454
Reputation: 80340
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.
Upvotes: 2