Remove cursor terminal codes.