-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make commands execution clearer for when 0 is returned. #74
Comments
This critic should actually go at google. I find it very annoying too, but it is how adb works. Ladb app is just a wrapper for googles adb. So to "fix" would mean to use a workaround like what you mentioned. I don't think the author of ladb should waste resources trying to fix google. Would be better if he just updates the adb component and we go to Google's adb tracker to request the feature. |
Not at all. Adb itself returns 0 when a command succeeded. Meaning the pretty evident thing that control is returned to the caller. And if you mean the built-in shell instead, like any other one regardless of whatever was the output of the previous command, a new prompt is shown every time. |
Yes that was i meant, a new promt means success but no message. But you are right, there is no prompt here. |
@mirh @teou1 Hmm I could maybe check this out. I actually saw something really interesting, it's a flutter package called xterm, it supports a full xterm emulator so you'd be able to use proper shell features and see the return codes. But obviously that requires rewriting the app in Flutter. I'll put this on the list, I could put a little color indicator maybe! |
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 |
How is it that tools like |
Basically LADB opens "adb shell", but "adb shell" can start up top. But if I send a process kill, it kills "adb shell", not the thing underneath. And it looks like I can't really send a key-combo. I need to send a process signal. But a SIGINT would kill ADB. |
I see. |
Basically yeah we can't get any info about the sub-command. I checked for an xterm emulator for Android but couldn't find any libraries. What would be a convenient way to notify the user about a command succeeding to send, in your opinion? |
I didn't really have any specific idea. |
Assume I'm
pm grant
ing something.If you insert the wrong command, you get something like in #66.
But, if do everything good, you don't get any feedback that the thing even run at all.
I'm not necessarily saying to clutter the simple interface with a "line repeating the command that has just been inserted and then following it with a newline" like in a normal desktop CLI, but there should be some visual indication something happened.
The text was updated successfully, but these errors were encountered: