sandsifter icon indicating copy to clipboard operation
sandsifter copied to clipboard

Resizing terminal window crashes summarize.py

Open Husky2490 opened this issue 6 years ago • 0 comments

Stderr:

Traceback (most recent call last):
  File "./summarize.py", line 751, in <module>
    textbox.draw()
  File "/home/ruben/Documents/repos/sandsifter/gui/gui.py", line 68, in draw
    self.gui.box(self.window, self.x, self.y, self.w, self.h, self.color)
  File "/home/ruben/Documents/repos/sandsifter/gui/gui.py", line 175, in box
    window.addch(y + h - 1, x + i, curses.ACS_HLINE, color)
_curses.error: addch() returned ERR

To replicate:

  1. Run with the terminal in full screen mode
  2. Resize terminal
  3. Crash (profit)

Husky2490 avatar Sep 13 '18 00:09 Husky2490