Reference: Info
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:59:15Z

#

| Chapter 19 Win32 Modules and Extensions |

## Info

    $cons->Info

Returns an array of information about the console, which contains:

- Number of columns (X size) of the console buffer

- Number of rows (Y size) of the console buffer

- Current column (X position) of the cursor

- Current row (Y position) of the cursor

- Current attribute used for `Write`

- Left column (X of the starting point) of the current console window

- Top row (Y of the starting point) of the current console window

- Right column (X of the final point) of the current console window

- Bottom row (Y of the final point) of the current console window

- Maximum number of columns for the console window, given the current buffer size, font, and screen size

- Maximum number of rows for the console window, given the current buffer size, font, and screen size

This example prints the cursor's current position:

>     @info = $CONSOLE->Info();
>     print "Cursor at $info[3], $info[4].0";

Reference: GetEvents |  | Reference: Input