I know the following doesn't really answer your question, but by default in Windows, the only square font in cmd appears to be the 8x8 Raster Font, so you'd have to set your cmd to be that.
Yes, it's very platform dependent and has nothing to do with C++ itself.