コード例 #1
0
        public void WriteCharactersAt(int x, int y, int count, char character, CharacterAttribute attribute)
        {
            var coord   = new COORD((short)x, (short)y);
            var winattr = _colorManager.AttributeToWin32Colors(attribute);

            ConsoleNative.FillConsoleOutputAttribute(_hstdout, (ushort)winattr, (uint)count, coord, out var numAttrWritten);
            ConsoleNative.FillConsoleOutputCharacter(_hstdout, (char)character, (uint)count, coord, out var numWritten);
        }
コード例 #2
0
 public void WriteCharacterAt(int x, int y, char character)
 {
     ConsoleNative.FillConsoleOutputCharacter(_hstdout, character, (uint)1, new COORD((short)x, (short)y), out var numWritten);
 }