mirror of
https://github.com/Kitware/CMake.git
synced 2026-07-16 20:41:55 +00:00
ccmake: Factor toggle key help instructions.
This commit is contained in:
@@ -427,15 +427,13 @@ void cmCursesMainForm::PrintKeys(int process /* = 0 */)
|
|||||||
{
|
{
|
||||||
sprintf(firstLine, "Press [c] to configure ");
|
sprintf(firstLine, "Press [c] to configure ");
|
||||||
}
|
}
|
||||||
if (this->AdvancedMode)
|
{
|
||||||
{
|
const char* toggleKeyInstruction =
|
||||||
sprintf(thirdLine, "Press [t] to toggle advanced mode (Currently On)");
|
"Press [t] to toggle advanced mode (Currently %s)";
|
||||||
}
|
sprintf(thirdLine,
|
||||||
else
|
toggleKeyInstruction,
|
||||||
{
|
this->AdvancedMode ? "On" : "Off");
|
||||||
sprintf(thirdLine, "Press [t] to toggle advanced mode (Currently Off)");
|
}
|
||||||
}
|
|
||||||
|
|
||||||
sprintf(secondLine,
|
sprintf(secondLine,
|
||||||
"Press [h] for help "
|
"Press [h] for help "
|
||||||
"Press [q] to quit without generating");
|
"Press [q] to quit without generating");
|
||||||
|
|||||||
Reference in New Issue
Block a user