Constructor

FoundryAcpTerminalOutputnew

unstable since: 1.2

Declaration [src]

FoundryAcpTerminalOutput*
foundry_acp_terminal_output_new (
  const char* text,
  gboolean truncated,
  gboolean has_exit_status,
  int exit_code,
  const char* signal_name
)

Description [src]

Creates a terminal output snapshot.

Available since: 1.2

Parameters

text

Type: const char*

Terminal output text.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
truncated

Type: gboolean

If the output was truncated.

has_exit_status

Type: gboolean

If exit_code or signal_name is meaningful.

exit_code

Type: int

Process exit code.

signal_name

Type: const char*

Process signal name.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

The caller of the function takes ownership of the data, and is responsible for freeing it.