tags:

views:

27

answers:

1

Hi,

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

+1  A: 

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.

Peter Knego
I was confused, thats the solution!
Heinrich