mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-08-30 12:15:12 +00:00
add roadmap information file (#16)
This commit is contained in:
committed by
GitHub
parent
f900e8dff5
commit
5118aaf379
@@ -84,18 +84,22 @@ CConsole::~CConsole()
|
||||
#endif
|
||||
}
|
||||
|
||||
void CConsole::PrintHeader(uint32_t uiInstance)
|
||||
void CConsole::PrintHeader(bool bSimulate, uint32_t uiInstance)
|
||||
{
|
||||
// Clear the screen...
|
||||
std::cout << "\x1b[2J";
|
||||
|
||||
std::string subTtitle = "Standalone application!";
|
||||
if (uiInstance != 0)
|
||||
if (uiInstance > 1)
|
||||
{
|
||||
subTtitle = "Connected to core instance ";
|
||||
subTtitle.append(std::to_string(uiInstance));
|
||||
subTtitle.append(" (not all interfaces available)");
|
||||
}
|
||||
else if (bSimulate)
|
||||
{
|
||||
subTtitle.append(" simulation mode");
|
||||
}
|
||||
// Print the titles
|
||||
PrintText(g_sTitle, "Open Trunk example: Open trunk when vehicle is not moving");
|
||||
PrintText(g_sSubTitle, subTtitle);
|
||||
|
||||
Reference in New Issue
Block a user