91 references to ConsolePal
System.Console (91)
System\Console.cs (62)
52
ConsolePal
.EnsureConsoleInitialized();
58
Volatile.Write(ref s_in,
ConsolePal
.GetOrCreateReader());
81
Volatile.Write(ref s_inputEncoding,
ConsolePal
.InputEncoding);
95
ConsolePal
.SetConsoleInputEncoding(value);
118
Volatile.Write(ref s_outputEncoding,
ConsolePal
.OutputEncoding);
135
ConsolePal
.SetConsoleOutputEncoding(value);
165
return
ConsolePal
.KeyAvailable;
175
return
ConsolePal
.ReadKey(false);
184
return
ConsolePal
.ReadKey(intercept);
208
Volatile.Write(ref s_out, CreateOutputWriter(
ConsolePal
.OpenStandardOutput()));
228
Volatile.Write(ref s_error, CreateOutputWriter(
ConsolePal
.OpenStandardError()));
263
Volatile.Write(ref _isStdInRedirected, new StrongBox<bool>(
ConsolePal
.IsInputRedirectedCore()));
278
Volatile.Write(ref _isStdOutRedirected, new StrongBox<bool>(
ConsolePal
.IsOutputRedirectedCore()));
293
Volatile.Write(ref _isStdErrRedirected, new StrongBox<bool>(
ConsolePal
.IsErrorRedirectedCore()));
305
get { return
ConsolePal
.CursorSize; }
307
set {
ConsolePal
.CursorSize = value; }
313
get { return
ConsolePal
.NumberLock; }
319
get { return
ConsolePal
.CapsLock; }
330
get { return
ConsolePal
.BackgroundColor; }
331
set {
ConsolePal
.BackgroundColor = value; }
340
get { return
ConsolePal
.ForegroundColor; }
341
set {
ConsolePal
.ForegroundColor = value; }
350
ConsolePal
.ResetColor();
359
get { return
ConsolePal
.BufferWidth; }
361
set {
ConsolePal
.BufferWidth = value; }
370
get { return
ConsolePal
.BufferHeight; }
372
set {
ConsolePal
.BufferHeight = value; }
378
ConsolePal
.SetBufferSize(width, height);
383
get { return
ConsolePal
.WindowLeft; }
385
set {
ConsolePal
.WindowLeft = value; }
390
get { return
ConsolePal
.WindowTop; }
392
set {
ConsolePal
.WindowTop = value; }
401
get { return
ConsolePal
.WindowWidth; }
403
set {
ConsolePal
.WindowWidth = value; }
412
get { return
ConsolePal
.WindowHeight; }
416
ConsolePal
.WindowHeight = value;
423
ConsolePal
.SetWindowPosition(left, top);
429
ConsolePal
.SetWindowSize(width, height);
438
get { return
ConsolePal
.LargestWindowWidth; }
447
get { return
ConsolePal
.LargestWindowHeight; }
453
get { return
ConsolePal
.CursorVisible; }
458
set {
ConsolePal
.CursorVisible = value; }
467
get { return
ConsolePal
.GetCursorPosition().Left; }
477
get { return
ConsolePal
.GetCursorPosition().Top; }
492
return
ConsolePal
.GetCursorPosition();
498
get { return
ConsolePal
.Title; }
506
ConsolePal
.Title = value;
516
ConsolePal
.Beep();
522
ConsolePal
.Beep(frequency, duration);
528
ConsolePal
.MoveBufferArea(sourceLeft, sourceTop, sourceWidth, sourceHeight, targetLeft, targetTop, ' ', ConsoleColor.Black, BackgroundColor);
534
ConsolePal
.MoveBufferArea(sourceLeft, sourceTop, sourceWidth, sourceHeight, targetLeft, targetTop, sourceChar, sourceForeColor, sourceBackColor);
542
ConsolePal
.Clear();
557
ConsolePal
.SetCursorPosition(left, top);
569
ConsolePal
.EnsureConsoleInitialized();
609
get { return
ConsolePal
.TreatControlCAsInput; }
610
set {
ConsolePal
.TreatControlCAsInput = value; }
619
return
ConsolePal
.OpenStandardInput();
628
return
ConsolePal
.OpenStandardInput();
633
return
ConsolePal
.OpenStandardOutput();
640
return
ConsolePal
.OpenStandardOutput();
645
return
ConsolePal
.OpenStandardError();
652
return
ConsolePal
.OpenStandardError();
System\ConsolePal.Unix.ConsoleStream.cs (3)
45
ConsolePal
.StdInReader.ReadLine(buffer) :
47
ConsolePal
.Read(_handle, buffer);
50
ConsolePal
.WriteFromConsoleStream(_handle, buffer);
System\IO\StdInReader.cs (26)
212
if (
ConsolePal
.TryGetCursorPosition(out int left, out int top, reinitializeForRead: true) &&
215
s_clearToEol ??=
ConsolePal
.TerminalFormatStringsInstance.ClrEol ?? string.Empty;
218
ConsolePal
.SetTerminalCursorPosition(
ConsolePal
.WindowWidth - 1, top - 1);
220
ConsolePal
.WriteTerminalAnsiString(s_clearToEol, mayChangeCursorPosition: false);
226
string? moveLeft =
ConsolePal
.TerminalFormatStringsInstance.CursorLeft;
230
ConsolePal
.WriteTerminalAnsiString(s_moveLeftString);
250
ConsolePal
.WriteTerminalAnsiString(
ConsolePal
.TerminalFormatStringsInstance.Clear);
307
c !=
ConsolePal
.s_posixDisableValue &&
308
(c ==
ConsolePal
.s_veolCharacter || c ==
ConsolePal
.s_veol2Character || c ==
ConsolePal
.s_veofCharacter);
360
(
ConsolePal
.s_veolCharacter !=
ConsolePal
.s_posixDisableValue ?
ConsolePal
.s_veolCharacter :
361
ConsolePal
.s_veol2Character !=
ConsolePal
.s_posixDisableValue ?
ConsolePal
.s_veol2Character :
362
ConsolePal
.s_veofCharacter !=
ConsolePal
.s_posixDisableValue ?
ConsolePal
.s_veofCharacter :
368
return KeyParser.Parse(_unprocessedBufferToBeRead,
ConsolePal
.TerminalFormatStringsInstance,
ConsolePal
.s_posixDisableValue,
ConsolePal
.s_veraseCharacter, ref _startIndex, _endIndex);
397
ConsolePal
.WriteToTerminal(bytes.Slice(0, bytesWritten));