def uparrow(self):
        self.history_index += 1
        if self.history_index < len(self.history):
            self.updateerasebuffersize()
            del self.buffer[:]
            self.cursor = 0
            self.history_index = -1
        else:
            self.updateerasebuffersize()
            self.buffer = deepcopy(self.history[self.history_index])
            self.cursor = len(self.buffer)
dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py/PygcurseInput.uparrow/operator `>=` -> `<`