22#if defined(__EMSCRIPTEN__)
25 CONSOLE_SCREEN_BUFFER_INFO csbi;
27 if (GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi)) {
28 return Dimensions{csbi.srWindow.Right - csbi.srWindow.Left + 1,
29 csbi.srWindow.Bottom - csbi.srWindow.Top + 1};
37 ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);