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

resize terminal on initial loading of tickets creates traceback #5

Open
runborg opened this issue Jun 12, 2024 · 0 comments
Open

resize terminal on initial loading of tickets creates traceback #5

runborg opened this issue Jun 12, 2024 · 0 comments

Comments

@runborg
Copy link
Contributor

runborg commented Jun 12, 2024

Resizing the terminal (shrinking the windown in one directionwhen the initial loading of tickets screen is present creates a traceback when ticket loading is finished.

Traceback (most recent call last):
  File "/home/runarb/.local/bin/curitz", line 8, in <module>
    sys.exit(main())
  File "/home/runarb/.local/lib/python3.10/site-packages/curitz/cli.py", line 1182, in main
    curses.wrapper(uiloop, config)
  File "/usr/lib/python3.10/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/home/runarb/.local/lib/python3.10/site-packages/curitz/cli.py", line 404, in uiloop
    runner(screen, config)
  File "/home/runarb/.local/lib/python3.10/site-packages/curitz/cli.py", line 679, in runner
    lb.draw()
  File "/home/runarb/.local/lib/python3.10/site-packages/curitz/culistbox.py", line 94, in draw
    self.box.addstr(
_curses.error: addwstr() returned ERR

i think the cause of this is that screen size is calculated before entering the initial load dialog and then used on the "window" thereafter. then as addwstr cant really paint the pixels thats removed fron the terminal at the edge of the window it crashes with a traceback.

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

1 participant