AdbLib icon indicating copy to clipboard operation
AdbLib copied to clipboard

How to send Ctrl+C?

Open Jolanrensen opened this issue 8 years ago • 2 comments

I know it's possible you have a Ctrl+C send option in the adb app built in, but I was wondering how to send such a command for myself using this library. I can't seem to find out how.

Jolanrensen avatar Oct 20 '17 13:10 Jolanrensen

Looks like my code is just sending 0x03 to the stream.

            case MENU_ID_CTRL_C:
                if (connection != null) {
                    connection.queueBytes(new byte[]{0x03});
                     
                    /* Force scroll to the bottom */
                    scrollViewAtBottom = true;
                    doAsyncGuiUpdate();
                }
                break;

cgutman avatar Oct 20 '17 15:10 cgutman

Thanks for your response! And after sending this, do you automatically create a new connection/stream?

Jolanrensen avatar Oct 26 '17 11:10 Jolanrensen