mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Help] Account for special situation with pause
This commit is contained in:
@@ -259,13 +259,15 @@ namespace SabreTools.Helper.Help
|
||||
{
|
||||
// Now output based on the size of the screen
|
||||
int i = 0;
|
||||
foreach (string help in helptext)
|
||||
for (int line = 0; line < helptext.Count; line++)
|
||||
{
|
||||
string help = helptext[line];
|
||||
|
||||
Console.WriteLine(help);
|
||||
i++;
|
||||
|
||||
// If we're not being redirected and we reached the size of the screen, pause
|
||||
if (i == Console.WindowHeight - 3)
|
||||
if (i == Console.WindowHeight - 3 && line != helptext.Count - 1)
|
||||
{
|
||||
i = 0;
|
||||
Pause();
|
||||
|
||||
Reference in New Issue
Block a user