Skip to content

Detect if running in a tty? #9

@traverseda

Description

@traverseda

Would something like

if sys.stdout.isatty():
    # You're running in a real terminal
else:
    # You're being piped or redirected

allow quick to automatically determine if it was running in a TTY, and if not, open it as a GUI program?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions