Update terminal.cpp

more braces around