<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _handleBackspace(self):
 """ Handles backspace characters """

        if self.cursorPos > 0:
            #print( 'cp:',self.cursorPos,'was:', self.inputBuffer)
            self.inputBuffer = self.inputBuffer[0:self.cursorPos-1] + self.inputBuffer[self.cursorPos:]
            self.cursorPos -= 1
            #print ('cp:', self.cursorPos,'is:', self.inputBuffer)                        
            self._refreshInputPrompt(len(self.inputBuffer)+1)