consoleEmulator is cleared on compile success and run