Пример #1
0
 public void Clear(ConsoleClearFlags flags = ConsoleClearFlags.All)
 {
     if ((flags & ConsoleClearFlags.OutputBuffer) != 0)
     {
         ConsoleOutput.Clear();
     }
     if ((flags & ConsoleClearFlags.InputBuffer) != 0)
     {
         ConsoleInput.Clear();
     }
     if ((flags & ConsoleClearFlags.InputHistory) != 0)
     {
         ConsoleInput.InputHistory.Clear();
     }
 }
Пример #2
0
 /// <summary>
 /// Clears the subparts of the <see cref="Console"/>.
 /// </summary>
 /// <param name="clearFlags">Specifies which subparts to clear.</param>
 public void Clear(ConsoleClearFlags clearFlags = ConsoleClearFlags.All) => _console.Clear(clearFlags);