Method

VtePtyget_size

Declaration [src]

gboolean
vte_pty_get_size (
  VtePty* pty,
  int* rows,
  int* columns,
  GError** error
)

Description [src]

Reads the pseudo terminal’s window size.

If getting the window size failed, error will be set to a GIOError.

Parameters

rows int*
 

A location to store the number of rows, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
columns int*
 

A location to store the number of columns, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success, FALSE on failure with error filled in.