Add escape function to Console class