private boolean handleBackSpace ( int ch ) { if ( ch == Char . DEL || ch == Char . BS ) { // backspace... if ( before . length ( ) > 0 ) { before = before . substring ( 0 , before . length ( ) - 1 ) ; printInputLine ( ) ; } return true ; } return false ; }
Handle backspace . These are not control sequences so must be handled separately from those .