def delete(self):
        """Perform the action that happens when the delete key is pressed."""
        if self.cursor == len(self.buffer):
            return
        self.updateerasebuffersize()
        del self.buffer[self.cursor]
dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py/PygcurseInput.delete/original