Update terminal.cpp