#include <windows.h>
#include <iostream>
#include <unistd.h>
#include <stdio.h>
int main(int argc, char const *argv[]) {
HANDLE wHnd;
int i;
CHAR_INFO charInfo[10 * 10];
wHnd = GetStdHandle(STD_OUTPUT_HANDLE);
// play with these values
COORD charBufSize = {10, 10}; // do not exceed x*y=100 !!!
COORD characterPos = {5, 0}; // must be within 0 and x*y=100
SMALL_RECT writeArea = {2, 2, 12, 12};
for (i = 0; i < (10 * 10); i++)
{
charInfo[i].Char.AsciiChar = 'A' + (i % 26);
charInfo[i].Attributes = FOREGROUND_RED | FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_…