the key part is:
consoleSetWindow(&topleftWindow, 1, 1, 23, 14);
which breaks down to
consoleSetWindow(&windowHandle, left, top, width, height);
left and top are the top left corner of the window, and width and height define how big the window should be. These are in character cells, which...