Tabs->spaces for sprintf code, add terminal::exception