Skip to content

Does not work on Windows #10

Description

@flukas

Installed on windows (works ok), fails to run.
terminal.py:

    T = Terminal(stream=sys.stderr)
TypeError: PlainTerminal() takes no arguments

can be fixed like this:

# ...
try:
    import blessings
    # this can throw _curses.error: setupterm: could not find terminal
    # better find out now
    blessings.Terminal()
    Terminal = blessings.Terminal
    COLOR_TERMINAL = True
    T = Terminal(stream=sys.stderr)
except Exception:
    Terminal = PlainTerminal
    T = Terminal()

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