Skip to content

RFE: Expose exit code from Terminal's shell #72

@schnoddelbotz

Description

@schnoddelbotz

Hi and thanks for fyne + terminal.

For my use-case it would be very helpful to retrieve the final exit code from the terminal's shell to determine outcome from commands executed in terminal via write().

The attached screenshot shows required changes to make this work (at least on macOS).
It obviously lacks Windows support so far and has no tests - I wanted to check your general thoughts on this before proceeding.

Should you be positive on it, feel free to simply recycle bits from below - or let me know if you'd prefer a PR.
👋

terminal-diff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions