94 references to ConsolePal
System.Console (94)
System\Console.cs (65)
53
ConsolePal
.EnsureConsoleInitialized();
59
Volatile.Write(ref s_in,
ConsolePal
.GetOrCreateReader());
82
Volatile.Write(ref s_inputEncoding,
ConsolePal
.InputEncoding);
96
ConsolePal
.SetConsoleInputEncoding(value);
119
Volatile.Write(ref s_outputEncoding,
ConsolePal
.OutputEncoding);
136
ConsolePal
.SetConsoleOutputEncoding(value);
166
return
ConsolePal
.KeyAvailable;
176
return
ConsolePal
.ReadKey(false);
185
return
ConsolePal
.ReadKey(intercept);
209
Volatile.Write(ref s_out, CreateOutputWriter(
ConsolePal
.OpenStandardOutput()));
229
Volatile.Write(ref s_error, CreateOutputWriter(
ConsolePal
.OpenStandardError()));
264
Volatile.Write(ref _isStdInRedirected, new StrongBox<bool>(
ConsolePal
.IsInputRedirectedCore()));
279
Volatile.Write(ref _isStdOutRedirected, new StrongBox<bool>(
ConsolePal
.IsOutputRedirectedCore()));
294
Volatile.Write(ref _isStdErrRedirected, new StrongBox<bool>(
ConsolePal
.IsErrorRedirectedCore()));
306
get { return
ConsolePal
.CursorSize; }
308
set {
ConsolePal
.CursorSize = value; }
314
get { return
ConsolePal
.NumberLock; }
320
get { return
ConsolePal
.CapsLock; }
331
get { return
ConsolePal
.BackgroundColor; }
332
set {
ConsolePal
.BackgroundColor = value; }
341
get { return
ConsolePal
.ForegroundColor; }
342
set {
ConsolePal
.ForegroundColor = value; }
351
ConsolePal
.ResetColor();
360
get { return
ConsolePal
.BufferWidth; }
362
set {
ConsolePal
.BufferWidth = value; }
371
get { return
ConsolePal
.BufferHeight; }
373
set {
ConsolePal
.BufferHeight = value; }
379
ConsolePal
.SetBufferSize(width, height);
384
get { return
ConsolePal
.WindowLeft; }
386
set {
ConsolePal
.WindowLeft = value; }
391
get { return
ConsolePal
.WindowTop; }
393
set {
ConsolePal
.WindowTop = value; }
402
get { return
ConsolePal
.WindowWidth; }
404
set {
ConsolePal
.WindowWidth = value; }
413
get { return
ConsolePal
.WindowHeight; }
417
ConsolePal
.WindowHeight = value;
424
ConsolePal
.SetWindowPosition(left, top);
430
ConsolePal
.SetWindowSize(width, height);
439
get { return
ConsolePal
.LargestWindowWidth; }
448
get { return
ConsolePal
.LargestWindowHeight; }
454
get { return
ConsolePal
.CursorVisible; }
459
set {
ConsolePal
.CursorVisible = value; }
468
get { return
ConsolePal
.GetCursorPosition().Left; }
478
get { return
ConsolePal
.GetCursorPosition().Top; }
493
return
ConsolePal
.GetCursorPosition();
499
get { return
ConsolePal
.Title; }
507
ConsolePal
.Title = value;
517
ConsolePal
.Beep();
523
ConsolePal
.Beep(frequency, duration);
529
ConsolePal
.MoveBufferArea(sourceLeft, sourceTop, sourceWidth, sourceHeight, targetLeft, targetTop, ' ', ConsoleColor.Black, BackgroundColor);
535
ConsolePal
.MoveBufferArea(sourceLeft, sourceTop, sourceWidth, sourceHeight, targetLeft, targetTop, sourceChar, sourceForeColor, sourceBackColor);
543
ConsolePal
.Clear();
558
ConsolePal
.SetCursorPosition(left, top);
570
ConsolePal
.EnsureConsoleInitialized();
610
get { return
ConsolePal
.TreatControlCAsInput; }
611
set {
ConsolePal
.TreatControlCAsInput = value; }
620
return
ConsolePal
.OpenStandardInput();
629
return
ConsolePal
.OpenStandardInput();
634
return
ConsolePal
.OpenStandardOutput();
641
return
ConsolePal
.OpenStandardOutput();
646
return
ConsolePal
.OpenStandardError();
653
return
ConsolePal
.OpenStandardError();
669
return
ConsolePal
.OpenStandardInputHandle();
684
return
ConsolePal
.OpenStandardOutputHandle();
699
return
ConsolePal
.OpenStandardErrorHandle();
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));