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

Crash when terminal gets resized #3

Open
amosbird opened this issue Apr 1, 2022 · 0 comments
Open

Crash when terminal gets resized #3

amosbird opened this issue Apr 1, 2022 · 0 comments

Comments

@amosbird
Copy link

amosbird commented Apr 1, 2022

tfg doesn't handle SIGWINCH correctly.

Traceback (most recent call last):
  File "/tmp/toolchain/bin/tfg/browser/terminal.py", line 93, in _draw_frame
    self._win.addstr(y, vf.x, vf.text, attrs)
_curses.error: addwstr() returned ERR

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/toolchain/bin/tfg.py", line 7, in <module>
    main()
  File "/tmp/toolchain/bin/tfg/main.py", line 70, in main
    process_args(parser.parse_args())
  File "/tmp/toolchain/bin/tfg/main.py", line 39, in process_args
    browser.display()
  File "/tmp/toolchain/bin/tfg/browser/terminal.py", line 274, in display
    curses.wrapper(self._display)
  File "/tmp/toolchain/lib/python3.6/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/tmp/toolchain/bin/tfg/browser/terminal.py", line 290, in _display
    win.draw()
  File "/tmp/toolchain/bin/tfg/browser/terminal.py", line 75, in draw
    self._draw_frame(vf, y)
  File "/tmp/toolchain/bin/tfg/browser/terminal.py", line 96, in _draw_frame
    cer, vf.x, y, vf.text))
tfg.browser.terminal.BrowserException: error: addwstr() returned ERR, x: 0, y: 44, text: all                                                                                                                         
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