Giter Site home page Giter Site logo

Comments (4)

agnostic-apollo avatar agnostic-apollo commented on July 24, 2024

This is expected behaviour currently as mentioned in README

Execute in a terminal session toggle defines whether the commands will be run in the background or in a foreground terminal session.

If the toggle is enabled, a new terminal session will open up automatically in the foreground and commands will be run inside it. Result of commands is not returned to the plugin host app.

For BackgroundJobs, the stdout and stderr is captured in variables and can easily be returned to the plugin host app, but for foreground terminal session commands, those are sent to the terminal view.

However, exit code is still available when terminal sessions close, which can likely be sent back to the plugin host app, would require some work of course in termux-app, specially with linking sessions with their respective execution intents. And an addition of a Wait for commands to end toggle if Execute in a terminal session toggle is enabled in termux-tasker.

It might also be possible to capture stdout and stderr in variables and also sent them to the terminal view, but would require looking into.

from termux-tasker.

xalexalex avatar xalexalex commented on July 24, 2024

Okay, got it.
So definitely not a bug, but a feature request. Perhaps one thing we could do is be a bit more clear regarding the fact that the foreground terminal session runs independently from the tasker task, which continues immediately. I'd read the documentation but it is not explicit, and perhaps even a bit misleading ("run in background" stops the tasker task, whereas "run in foreground" runs asynchronously while the task continues).
Do you prefer to keep the issue open as a feature request? Otherwise I'll close it.
Thanks!

from termux-tasker.

agnostic-apollo avatar agnostic-apollo commented on July 24, 2024

I agree, should make it more clear.

Leave it open, me or someone else would get to it. The termux-app android-10 branch may also require merging with master, so big changes in master before that would cause problems.

from termux-tasker.

agnostic-apollo avatar agnostic-apollo commented on July 24, 2024

Closed by fecba50

from termux-tasker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.