Skip to content

probe-web / @probe-web/ui / ProbeSemihostingConsole

Class: ProbeSemihostingConsole

Defined in: packages/ui/src/semihosting-console.ts:18

<probe-semihosting-console>: shows the target's semihosting stdout and stderr and its exit status. Feed it from whatever runs the monitor loop: point ProbeSemihostingConsole.source at an element that dispatches monitor-event and monitor-exit events (<probe-rtt-terminal> does), or call ProbeSemihostingConsole.push and ProbeSemihostingConsole.setExit directly.

Fires no events of its own. Keeps the last 2000 output chunks.

Extends

  • LitElement

Constructors

Constructor

ts
new ProbeSemihostingConsole(): ProbeSemihostingConsole;

Defined in: node_modules/@lit/reactive-element/development/reactive-element.d.ts:527

Returns

ProbeSemihostingConsole

Inherited from

ts
LitElement.constructor

Properties

PropertyTypeDefault valueDescriptionDefined in
sourceEventTarget | nullnullAn element (usually a <probe-rtt-terminal>) whose monitor-event / monitor-exit events are shown.packages/ui/src/semihosting-console.ts:38

Methods

push()

ts
push(e): void;

Defined in: packages/ui/src/semihosting-console.ts:60

Append the output of a semihosting monitor event; other kinds are ignored.

Parameters

ParameterType
eMonitorEvent

Returns

void


setExit()

ts
setExit(reason): void;

Defined in: packages/ui/src/semihosting-console.ts:66

Show how the monitor loop ended; only a semihosting exit is displayed, anything else clears it.

Parameters

ParameterType
reasonMonitorExitReason

Returns

void


clear()

ts
clear(): void;

Defined in: packages/ui/src/semihosting-console.ts:74

Clear the output and exit status.

Returns

void