Skip to content

Stream output from a subprocess to a window? #1076

Open
@keyz182

Description

@keyz182

I've been poking around at this for a bit now, and I'm drawing a blank as to how I'd do this.

The basic use case is - I'd like to run the command docker-compose up, and stream it's output. If I run that command alone, it just prints it's output to stdout, I'd like it to do that, but within a window/component. Later, I'd like to add a menu, and a second window to show some other bits, but right now, I'd be happy if I could just get the basic use case up and running.

From subprocess.Popen I can either obtain a BufferedReader, or I believe the FD for it's stdout to treat it like a pipe/file.

Any pointers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-better-docsQuestion about something for which we probably need better documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions