Deno.consoleSize

UNSTABLE: New API, yet to be vetted.

Gets the size of the console as columns/rows.

const { columns, rows } = Deno.consoleSize(Deno.stdout.rid);
function consoleSize(rid: number): {
columns: number;
rows: number;
}
;
§
consoleSize(rid: number): {
columns: number;
rows: number;
}
[src]

§Parameters

§
rid: number
[src]

§Return Type

§
{
columns: number;
rows: number;
}
[src]