def __init__(self, config): self.config = config self.clipboard = clipboard.select_clipboard() self.colors = None self._idleprocs = None self.lastcommands = () self.focus = None self._quit = False self.theme = self.DEFAULT_THEME self.last_dir = '.' self._input_readers = [] self._tasks = []
def __init__(self, config): self.config = config self.clipboard = clipboard.select_clipboard() self.colors = None self._idleprocs = None self.lastcommands = () self.focus = None self._quit = False self.theme = self.DEFAULT_THEME self.last_dir = '.' self._input_readers = [] self._lock = threading.RLock() self._tasks = [] self.commands = {} self.is_availables = {} self.sigwinch_rfd, self.sigwinch_wfd = os.pipe() signal.signal(signal.SIGWINCH, lambda *args: os.write(self.sigwinch_wfd, b'0'))