Skip to content

Commit af22a4a

Browse files
TerminalAppGen3 v0.1.1 source
1 parent 3c65d72 commit af22a4a

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

CommandFiles/CPUStress.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void CpuBenchmark(short int nSingleOrMulti, long long int nArgNum = -1) {
109109
if (nSingleOrMulti == 1) {
110110

111111
// Start timer and call the cpu benchmark worker only once for single core
112-
std::cout << "Starting single-core benchmark with " << nReiterationCount << " reiterations.\n";
112+
std::cout << "Starting single-core benchmark with " << nReiterationCount << " reiterations, 1 core.\n";
113113
slowcolourfn(LGRN, sColourGlobalBack, "Single-core benchmark has started...\n");
114114
clearkeebbuf();
115115

@@ -139,7 +139,7 @@ void CpuBenchmark(short int nSingleOrMulti, long long int nArgNum = -1) {
139139
std::vector<std::thread> vThreads(nLogicalCoreCount);
140140

141141
// Start timer and call the cpu benchmark worker nLogicalCoreCount times
142-
std::cout << "Starting multi-core benchmark with " << nReiterationCount << " reiterations.\n";
142+
std::cout << "Starting multi-core benchmark with " << nReiterationCount << " reiterations, " << nLogicalCoreCount << " logical cores.\n";
143143
slowcolourfn(LGRN, sColourGlobalBack, "Multi-core benchmark has started...\n");
144144
clearkeebbuf();
145145

@@ -157,7 +157,7 @@ void CpuBenchmark(short int nSingleOrMulti, long long int nArgNum = -1) {
157157
break;
158158
}
159159
// Output progress
160-
std::cout << "Progress: " << (nCurrentReiterationNum * 100) / nReiterationCount << "%\r";
160+
std::cout << "Progress: " << (nCurrentReiterationNum * 100) / nReiterationCount << "% \r";
161161
}
162162

163163
StopCpuStress = true;

CommandFiles/CommandsFile.cpp

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void ColourBackground(int nChoice = 0) {
186186
oseColourBack.sOptions = sOptions;
187187

188188
// Display options
189-
int nChoice = oseColourBack.OptionSelect("Please choose your desired background colour below:", " ___COLOUR___ ");
189+
nChoice = oseColourBack.OptionSelect("Please choose your desired background colour below:", " ___COLOUR___ ");
190190
}
191191
else if (nChoice == 17) {
192192
colour(YLW, sColourGlobalBack);
@@ -408,7 +408,7 @@ void help() {
408408
sneHelp.nSizeOfScreens = 3;
409409
std::string sScreens[] =
410410
{
411-
"___LIST OF COMMANDS___\n\n[1] Help\n[2] Exit\n[3] Tutorial\n[4] DevOptions\n[5] CPUStress\n[6] Colour\n[7] Settings\n[8] Title\n[9] Date\n[10] ColourNumbers\n\nMore will be added soon!\n",
411+
"___LIST OF COMMANDS___\n\n[1] Help\n[2] Exit\n[3] Tutorial\n[4] DevTools\n[5] CPUStress\n[6] Colour\n[7] Settings\n[8] Title\n[9] Date\n[10] ColourNumbers\n\nMore will be added soon!\n",
412412

413413
"___FREQUENTLY ASKED QUESTIONS___\n\n"
414414
"1) I can't see the terminal text. How can I zoom in?\n 1a) You can zoom in, of course. Press and hold the Ctrl button and scroll with the mouse to your desired text size.\n",
@@ -739,7 +739,7 @@ void DevTools(short int nToolNum) {
739739
CentreColouredText(" ___ANSI VT TESTING ENVIRONMENT___ ", 1);
740740
std::cout << std::endl;
741741
colourSubheading();
742-
slowcharCentredFn(true, "This is a sandbox-style testing enviroment for ANSI (VT) escape codes. For experienced users only.");
742+
slowcharCentredFn(true, "This is a sandbox-style testing enviroment for ANSI (VT) escape codes.");
743743
colour(sColourGlobal, sColourGlobalBack);
744744

745745
std::cout << NOULINE_STR << "\n\n" << wordWrap("You can test any ANSI escape code here. Everything will be reset after exiting the sandbox (by typing in 0 or \"zero\").");
@@ -1882,6 +1882,15 @@ void Commands(const std::string sCommand, char* cCommandArgs, std::string* sStri
18821882
case 6:
18831883
AnsiSettings();
18841884
break;
1885+
case 7:
1886+
WordWrapSettings();
1887+
break;
1888+
case 8:
1889+
CursorSettings();
1890+
break;
1891+
case 9:
1892+
OtherSettings();
1893+
break;
18851894

18861895
default:
18871896
colour(RED, sColourGlobalBack);
@@ -2019,4 +2028,4 @@ void Commands(const std::string sCommand, char* cCommandArgs, std::string* sStri
20192028
return;
20202029
}
20212030
return;
2022-
}
2031+
}

CommandFiles/Settings.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,8 @@ void CursorSettings(short int nChoice = 0, short int nChoiceBlink = 0, short int
608608
oseShape.nSizeOfOptions = 3;
609609
std::string sOptions[] = {
610610
"Block Shape",
611-
"Underline-style Shape"
612-
"Bar Shape (Default)",
611+
"Underline-style Shape",
612+
"Bar Shape (Default)"
613613
};
614614
oseShape.sOptions = sOptions;
615615

@@ -705,9 +705,9 @@ void OtherSettings(short int nChoice = 0, int nChoiceSlowChSpeed = 0, bool bFrom
705705
CentreColouredText(" ___SLOWCHAR SPEED SETINGS___ ", 1);
706706
std::cout << "\n";
707707
colourSubheading(); // extra info colour is the same as subheading colour
708-
std::cout << "Higher numbers are faster.";
708+
std::cout << "Higher numbers are faster." << NOULINE_STR;
709709
colour(sColourGlobal, sColourGlobalBack);
710-
std::cout << "\nDefault Speed: 45\n" << wordWrap("Input 0 to disable SlowChar entirely, and input a negative number to exit.") << '\n';
710+
std::cout << "\nDefault Speed: 45\nCurrent Speed: " << nSlowCharSpeed << "\n\n" << wordWrap("Input 0 to disable SlowChar entirely, and input a negative number to exit.") << '\n';
711711

712712
nChoiceSlowChSpeed = num("Please input how fast you want SlowChar to be: > ");
713713
}
@@ -791,4 +791,6 @@ void OtherSettings(short int nChoice = 0, int nChoiceSlowChSpeed = 0, bool bFrom
791791

792792
return;
793793
}
794+
795+
return;
794796
}

0 commit comments

Comments
 (0)