Skip to content

Curses error when monitor option is supplied #31

Description

@belavina

Running simengine-cli status --monitor throws when terminal window is resized (when the window is smaller than the output).

Traceback:

Traceback (most recent call last):
  File "/home/huanshi/dev/simengine/enginecore/simengine-cli", line 55, in <module>
    options.func(vars(options))
  File "/home/huanshi/dev/simengine/enginecore/enginecore/cli/status.py", line 29, in <lambda>
    status_group.set_defaults(func=lambda args: get_status(**args))
  File "/home/huanshi/dev/simengine/enginecore/enginecore/cli/status.py", line 132, in get_status
    status_table_format(assets, stdscr)
  File "/home/huanshi/dev/simengine/enginecore/enginecore/cli/status.py", line 65, in status_table_format
    i+1, 0, row, curses.color_pair(bcolors.ERROR if int(asset['status']) == 0 else bcolors.OKGREEN)
_curses.error: addwstr() returned ERR

see:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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