added termConsole() to xApp and added line to clear final prompt