You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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"
244
-
"\n\n2) The error messages shown aren't detailed enough. How do I get better-quality error messages?\n 2a) To get better quality error messages, just enable the Verbosity Messages setting in the Settings command.\n"
245
-
"\n\n3) I'm using the Windows 7 terminal. How do I scroll up and down in the terminal without using the mouse?\n 3a) To scroll up and down without the mouse, press Alt + Space and then the keys 'E' and 'L', and then scroll with the up/down arrow keys. Use the PageUp/PageDown keys to scroll full pages in the terminal.\n"
246
-
"\n\n4) What is the difference between the 'old' and 'new' OptionSelect Session styles?\n 4a) The 'old' style is an inspiration from the TerminalAppGen2, the previous iteration of this program. It is very robust, simple and works by associating a number with each option, which you type in and press ENTER to select.\nThe 'new' style isn't exactly new, and has been in ZeeTerminal since v0.1.0. However, it is newer than the 'old' style, hence it's referred to as 'new'. It relies on using the arrow/WS keys to move a highlight up and down, to select an option.\n",
253
+
// About - A function that displays all about and copyright information for ZeeTerminal,
254
+
// using the ScreenNavigate engine.
255
+
//
256
+
voidAbout(bool bFromTutorial) {
257
+
ScreenNavigateEngine sneAbout;
247
258
259
+
sneAbout.nSizeOfScreens = 2;
260
+
std::string sScreens[] =
261
+
{
248
262
"___ABOUT THIS PROGRAM___\n\nThis is the ZeeTerminal Commandline Program, Build v" + std::string(ZT_VERSION) + ".\n" +
249
263
"This is a beta build of ZeeTerminal, with an entirely new engine and components.\nThis program is made in C++, with a few very small parts of C." +
250
264
"\n\nThis program uses the DirectShow API in the MediaPlayer command, licensed by Microsoft Corp. (c) Microsoft Corp.\n\n" +
"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n"
271
285
};
272
286
273
-
sneHelp.sScreens = sScreens;
274
-
287
+
sneAbout.sScreens = sScreens;
288
+
289
+
// Set custom direction text when coming from tutorial
275
290
if (bFromTutorial) {
276
-
// Set custom direction text when coming from tutorial
277
-
sneHelp.SetDirectionsText("Press the 'A' key or left arrow key to move left.\nPress the 'D' key or right arrow key to move right.\nPress ESC to exit the Help command and continue with the tutorial.");
291
+
sneAbout.SetDirectionsText("Press the 'A' key or left arrow key to move left.\nPress the 'D' key or right arrow key to move right.\nPress ESC to exit the About command and continue with the tutorial.");
278
292
}
279
293
280
-
// Call sneHelp.ScreenNavigate for screen strings set.
281
-
sneHelp.ScreenNavigate("___HELP___");
294
+
// Call sneAbout.ScreenNavigate for screen strings set.
295
+
sneAbout.ScreenNavigate("___ABOUT___");
282
296
283
297
return;
284
298
}
@@ -332,9 +346,10 @@ void Tutorial() {
332
346
std::cout << "Please try again.\n";
333
347
}
334
348
}
335
-
slowcharfn(false, "\nThat previous command also taught you how to use the ScreenNavigate engine.\nYou can move left and right between 'screens' using the the ");
336
-
slowcolourfn(LCYN, ConfigObjMain.sColourGlobalBack, "A, D and left/right arrow keys");
337
-
slowcharfn(true, ", to look through any information provided.\n");
349
+
350
+
sleep(1000);
351
+
slowcharfn(true, "\nDid you notice how when you typed in 'help', the Help command executed?\nWhen executing commands, type the name of the command and press ENTER to execute it, just like you did to execute the Help command.\n"
352
+
"Use the Help command to get a reference of all the commands in the terminal.");
std::cout << wordWrap("\n -h\t\tDisplays this help message.\n --cardodge\tStarts the CarDodge game, a game where you dodge enemy cars to gain points.\n"
1042
-
" --gtn\t\tStarts the Guess The Number game, a game where you guess a number between 1 and 100 in as little tries as you can.\n\n"
1042
+
" --gtn\t\tStarts the Guess The Number game, a game where you guess a number between 1 and 100 in as little tries as you can.\n"
1043
+
" --gtne\t\tStarts the Guess The Number Extreme game, a game where you guess a number between 2 random numbers in under 5 tries, fighting for the highest score.\n\n"
1043
1044
"Example: game --cardodge\n\n");
1044
1045
1045
1046
return;
@@ -1151,4 +1152,88 @@ namespace helpmsgs
1151
1152
1152
1153
return;
1153
1154
}
1155
+
1156
+
// PiOutputHelp
1157
+
voidPiOutputHelp() {
1158
+
CentreColouredText(" ___PIOUTPUT___ ", 1);
1159
+
std::cout << "\n";
1160
+
CentreColouredText("This command outputs an argument-specified number of digits of Pi, up to 1 million d.p.", 2);
1161
+
std::cout << "\n\n";
1162
+
1163
+
colourSubheading();
1164
+
std::cout << "What this command does:" << NOULINE_STR;
std::cout << wordWrap("\n- This command outputs an argument-specified number of digits of Pi, up to 1 million decimal places.\n- For speed and efficiency purposes, the number is truncated, not rounded up or down.\n- For speed and simplistic purposes, the value of Pi is not calculated at run-time, however it was hard-coded at the compile-time of this program."
std::cout << wordWrap("\n -h\tDisplays this help message.\n <dp>\tNumber of decimal places to output Pi to. Put the integer desired in place of <dp>.\n\nExample: pioutput 16\n\nNOTE: <dp> argument cannot be less than 1 or more than 1 million.\n\n");
1175
+
1176
+
return;
1177
+
}
1178
+
1179
+
// SpamHelp
1180
+
voidSpamHelp() {
1181
+
CentreColouredText(" ___SPAM___ ", 1);
1182
+
std::cout << "\n";
1183
+
CentreColouredText("This command outputs an argument-specified string non-stop until the ESC key is pressed.", 2);
1184
+
std::cout << "\n\n";
1185
+
1186
+
colourSubheading();
1187
+
std::cout << "What this command does:" << NOULINE_STR;
std::cout << wordWrap("\n- This command outputs a string a specific number of times until infinity or until the ESC key is pressed on the keyboard.\n\n");
1190
+
1191
+
colourSubheading();
1192
+
std::cout << "Possible arguments for this command:" << NOULINE_STR;
std::cout << wordWrap("\n -h\tDisplays this help message.\n <str>\tThe string to spam output of. Put the desired string in place of <str>.\n\nExample: spam \"ZOO WEE MAMA\"\n\n"
1195
+
"NOTE: For any strings containing spaces, please enclose them in quotes like the example.\n\n");
1196
+
1197
+
return;
1198
+
}
1199
+
1200
+
// FAQHelp
1201
+
voidFAQHelp() {
1202
+
CentreColouredText(" ___FAQ___ ", 1);
1203
+
std::cout << "\n";
1204
+
CentreColouredText("This command outputs frequently-asked questions and answers about ZeeTerminal.", 2);
1205
+
std::cout << "\n\n";
1206
+
1207
+
colourSubheading();
1208
+
std::cout << "What this command does:" << NOULINE_STR;
std::cout << wordWrap("\n- This command outputs information about ZeeTerminal, including copyright information about different modules/APIs, thank-you messages, and license information.\n\n");
1231
+
1232
+
colourSubheading();
1233
+
std::cout << "Possible arguments for this command:" << NOULINE_STR;
UserErrorDisplay("An error occured. Your setting option seems to be incorrect. Make sure it's a number and try again.\nType \"settings -h\" for more info.\n");
VerbosityDisplay("In Commands() - ERROR: Could not detect numerical value in string-based number argument.\n");
838
+
UserErrorDisplay("An error occured. Your setting option seems to be incorrect. Make sure it's a number and try again.\nType \"settings -h\" for more info.\n");
VerbosityDisplay("In Commands() - ERROR: Could not detect numerical value in string-based number argument.\n");
849
+
UserErrorDisplay("An error occured. Your setting option seems to be incorrect. Make sure it's a number and try again.\nType \"settings -h\" for more info.\n");
0 commit comments