# File lib/ansi/terminal/win32.rb, line 29 def terminal_size stdout_handle = GetStdHandle(STD_OUTPUT_HANDLE) bufx, bufy, curx, cury, wattr, left, top, right, bottom, maxx, maxy = GetConsoleScreenBufferInfo(stdout_handle) return right - left + 1, bottom - top + 1 end