win.GetConsoleScreenBufferInfo

LuaFAR 3

win.GetConsoleScreenBufferInfo


info = win.GetConsoleScreenBufferInfo ()

Parameters:
  none

Returns (on success):
  info : table
    fields of info:
      SizeX:              integer
      SizeY:              integer
      CursorPositionX:    integer
      CursorPositionY:    integer
      Attributes:         integer
      WindowLeft:         integer
      WindowTop:          integer
      WindowRight:        integer
      WindowBottom:       integer
      MaximumWindowSizeX: integer
      MaximumWindowSizeY: integer

Returns (on failure):
  nil + error message

Windows API used:
  GetStdHandle(STD_OUTPUT_HANDLE), GetConsoleScreenBufferInfo