public static void WriteToScreenBuffer(IntPtr screenBufferToWriteOn, LowLevel.SMALL_RECT regionOfScreenBufferToWriteOn, LowLevel.CHAR_INFO[,] contentToWrite, LowLevel.COORD writeStartPos) { bool r = LowLevel.WriteConsoleOutput(screenBufferToWriteOn, contentToWrite, new LowLevel.COORD((short)contentToWrite.GetLength(1), (short)contentToWrite.GetLength(0)), writeStartPos, ref regionOfScreenBufferToWriteOn); }
public static void SetActiveScreenBuffer(IntPtr screenBuffer) { LowLevel.SetConsoleActiveScreenBuffer(screenBuffer); }
public static void WriteStringToScreenBuffer(IntPtr screenBufferToWriteOn, string stringToWrite, Vector2I posOfScreenBufferToStartTheWritingAt) { UInt32 numCharsWritten; LowLevel.WriteConsoleOutputCharacter(screenBufferToWriteOn, stringToWrite, (uint)stringToWrite.Length, new LowLevel.COORD((short)posOfScreenBufferToStartTheWritingAt.X, (short)posOfScreenBufferToStartTheWritingAt.Y), out numCharsWritten); }
public static IntPtr CreateScreenBuffer() { return(LowLevel.CreateConsoleScreenBuffer((uint)(0x80000000L | 0x40000000L), 0, IntPtr.Zero, 0, IntPtr.Zero)); }