Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- using namespace std;
- int main()
- {
- system("mode con:cols=80 lines=100");
- CONSOLE_FONT_INFOEX prompt;
- prompt.cbSize = sizeof(prompt);
- prompt.nFont = 0;
- prompt.dwFontSize.X = 0; // Width of each character in the font
- prompt.dwFontSize.Y = 15; // Height
- prompt.FontFamily = FF_DONTCARE;
- prompt.FontWeight = FW_NORMAL;
- std::wcscpy(prompt.FaceName, L"Consolas"); // Choose your font
- SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), FALSE, &prompt);
- cout<<"test";
- }
Advertisement
Add Comment
Please, Sign In to add comment