Exemple #1
0
 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);
 }
Exemple #2
0
 public static void SetActiveScreenBuffer(IntPtr screenBuffer)
 {
     LowLevel.SetConsoleActiveScreenBuffer(screenBuffer);
 }
Exemple #3
0
        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);
        }
Exemple #4
0
 public static IntPtr CreateScreenBuffer()
 {
     return(LowLevel.CreateConsoleScreenBuffer((uint)(0x80000000L | 0x40000000L), 0, IntPtr.Zero, 0, IntPtr.Zero));
 }