Skip to contents

Runs a program and shows its output. See process_view().

Super classes

Widget -> Vertical -> ProcessView

Public fields

command, args, wd, env, timeout

The process to run.

autostart

Start when the widget is mounted?

worker

The Worker of the current run, or NULL.

Active bindings

running

Is the process running?

output

The output lines so far.

Methods

Inherited methods


ProcessView$new()

Create a process view. See process_view().

Usage

ProcessView$new(
  command,
  args = character(),
  wd = NULL,
  env = NULL,
  timeout = NULL,
  autostart = TRUE,
  max_lines = 2000L,
  id = NULL,
  classes = NULL,
  style = NULL
)

Arguments

command, args, wd, env, timeout

The process to run.

autostart

Start when mounted?

max_lines

Output lines kept.

id, classes, style

See Widget.


ProcessView$default_bindings()

Ctrl+X cancels the process, Ctrl+R restarts it.

Usage

ProcessView$default_bindings()


ProcessView$on_mount()

Start the process when the widget is mounted.

Usage

ProcessView$on_mount(event)

Arguments

event

A MountEvent.


ProcessView$start()

Run the process (output starts afresh).

Usage

ProcessView$start()


ProcessView$cancel()

Stop the process.

Usage

ProcessView$cancel()


ProcessView$restart()

Cancel the process and run it again.

Usage

ProcessView$restart()


ProcessView$action_cancel_process()

Cancel action.

Usage

ProcessView$action_cancel_process()


ProcessView$action_restart_process()

Restart action.

Usage

ProcessView$action_restart_process()


ProcessView$clone()

The objects of this class are cloneable with this method.

Usage

ProcessView$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.