code: def _handleDelete(self):
          
          if self.cursorPos < len(self.inputBuffer):
              self.inputBuffer = self.inputBuffer[0:self.cursorPos] + self.inputBuffer[self.cursorPos+1:]                        
              self._refreshInputPrompt(len(self.inputBuffer)+1)
docs: Handles "delete" characters