Method: Console::Windows.get_buffer_info

Defined in:
lib/color_console/platform/windows.rb

.get_buffer_infoBufferInfo

Populate a BufferInfo structure with details about the current buffer state.

Returns:

  • (BufferInfo)

    A BufferInfo structure containing fields for various bits of console state.



27
28
29
30
31
32
# File 'lib/color_console/platform/windows.rb', line 27

def get_buffer_info
    if stdout
        self.get_console_screen_buffer_info(stdout, buffer_info)
        @buffer_info
    end
end