docs: def refresh_win(self, set_encoding=True):
          """ set_encoding is False when resizing """
          self._fix_geometry()
          self.init_window(set_encoding)
          self._win.bkgdset(' ', curses.color_pair(3))
          self._win.erase()
          self._win.box()
          self._win.addstr(0,
              int((self.maxX - len(self._title)) / 2),
              self._title,
              curses.color_pair(4))
          for i in range(1, self.maxX - 1):
              try:
                  self._win.addch(self.maxY -4,  i, '─', curses.color_pair(3))
              except:
                  self._win.addstr(self.maxY -4 , i, u'─'.encode('utf-8'), curses.color_pair(3))
          try:
              self._win.addch(self.maxY - 4, 0, '├', curses.color_pair(3))
              self._win.addch(self.maxY - 4, self.maxX - 1, '┤', curses.color_pair(3))
          except:
              self._win.addstr(self.maxY - 4,  0, u'├'.encode('utf-8'), curses.color_pair(3))
              self._win.addstr(self.maxY - 4,  self.maxX - 1, u'┤'.encode('utf-8'), curses.color_pair(3))
  
          self._num_of_rows = int(len(self._encodings) / self._num_of_columns)
          self._get_invalids()
          self.refresh_selection()