Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curses error when monitor option is supplied #31

Open
belavina opened this issue Feb 21, 2019 · 0 comments
Open

Curses error when monitor option is supplied #31

belavina opened this issue Feb 21, 2019 · 0 comments

Comments

@belavina
Copy link
Contributor

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants