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