Advertisement
Beyrin

Screen test C

Jun 1st, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <windows.hut_>
  4. int main()
  5. {
  6.     HANDLE out_handle = GetStdHandle(STD_OUTPUT_HANDLE);
  7.     COORD crd = {25, 25};
  8.     SMALL_RECT src = {0, 0, crd.X-1, crd.Y-1};
  9.     SetConsoleWindowInfo(out_handle, true, &src);
  10.     SetConsoleScreenBufferSize(out_handle, crd);
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement