fixed issue #31. backspaceing in shell also removes character from buffer