About 1,240,000 results
Open links in new tab
  1. Console.SetBufferSize(Int32, Int32) Method (System)

    Set Buffer Size (Int32, Int32) Method. Sets the height and width of the screen buffer area to the specified values. public static void SetBufferSize(int width, int height); The width of the buffer area measured in columns. The height of the buffer area measured in rows. height or width is less than or equal to zero. -or-

  2. How to access the console screen buffer in c# - Stack Overflow

    Jul 10, 2023 · I've been trying to find a way to access and edit the c# console screen buffer for a terminal based text editor, and I would rather not have to "redraw" the screen every time I need to update it.

  3. Console.SetBufferSize() Method in C# | GeeksforGeeks

    Mar 14, 2019 · Console.SetBufferSize (Int32, Int32) Method is used to set the height and width of the screen buffer area to the specified values. Syntax: public static void SetBufferSize (int width, int height); width: It sets the width of the buffer area measured in the form of columns. height: It sets the height of the buffer area measured in the form of rows.

  4. Imementing double screen buffer in c# console application

    Aug 3, 2021 · Figure out the width and height of your console buffer via the properties of the Console class. Make a 2D array that stores a char and a color. Instead of "drawing" to the screen, set the elements of that array.

  5. Accessing the console buffer? : r/csharp - Reddit

    Nov 20, 2022 · I recently made a small program to draw charts in the command line, and I was wondering if there is a way to acess the console buffer to maybe save it to a .txt or something else.

  6. Console Screen Buffers - Windows Console | Microsoft Learn

    Dec 29, 2021 · To open a handle to a console's active screen buffer, specify the CONOUT$ value in a call to the CreateFile function. A process can use the CreateConsoleScreenBuffer function to create additional screen buffers for its console.

  7. Buffer Class (System) | Microsoft Learn

    Console::WriteLine( "Final values of array:\n" ); DisplayArray( arr ); Console::WriteLine( "\nBuffer::GetByte( arr, 26 ): {0}", Buffer::GetByte( arr, 26 ) ); } /* This example of the Buffer class methods generates the following output. Note: The array is displayed from right to left.

  8. C# | Changing the size of the consoles buffer below what was …

    Oct 25, 2019 · According to the MSDN documentation of Console.SetBufferSize it is not limited to growing the buffer. However you have to adjust the console window size before shrinking the buffer. This example works:

  9. How to use the Buffer class in C# - InfoWorld

    Nov 2, 2020 · This article talks about how we can work with the Buffer class in C#. To work with the code examples provided in this article, you should have Visual Studio 2019 installed in your system.

  10. C# Console Class - GeeksforGeeks

    Jan 31, 2025 · The Console class in C# provides events used to execute certain programs when some event is triggered such as cancelling an operation or modifying console settings dynamically. For Example: CancelKeyPress Event Occurs when the Control modifier key (Ctrl) and either the C console key (C) or the Break key are pressed simultaneously (Ctrl+C or ...

  11. Some results have been removed
Refresh