tytydraco / LADB

A local ADB shell for Android!
https://play.google.com/store/apps/details?id=com.draco.ladb
Other
1.69k stars 462 forks source link

Control-C Is there a way? #72

Closed uglygus closed 1 year ago

uglygus commented 2 years ago

Is there some way to exit a running shell command? I can't find a way to send signals or Control-C.

teou1 commented 1 year ago

I have tried to, there is no way. I either do not make loops in scripts or close ladb and reopen, or use termux.

I actually think that is a good suggestion for the future: just give us the good old terminal prompt, no need from this input row. It make problems like popping the keyboard by loops all the time and decreasing the visible space (try this) while true; do dumpsys battery; sleep 5; done And as mentioned, if it was just a terminal one could install hacker keyboard and easily breaking the loop with ctrl c.

tytydraco commented 1 year ago

This is a good idea, I believe I tried this before but it wasn't successful. Let me try this again.

tytydraco commented 1 year ago

Turns out this is not possible because the ADB process is the only thing we have a handle on, not the subprocesses in the interactive shell