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
new ProbeSemihostingConsole(): ProbeSemihostingConsole;Defined in: node_modules/@lit/reactive-element/development/reactive-element.d.ts:527
Returns
ProbeSemihostingConsole
Inherited from
LitElement.constructorProperties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
source | EventTarget | null | null | An element (usually a <probe-rtt-terminal>) whose monitor-event / monitor-exit events are shown. | packages/ui/src/semihosting-console.ts:38 |
Methods
push()
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
| Parameter | Type |
|---|---|
e | MonitorEvent |
Returns
void
setExit()
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
| Parameter | Type |
|---|---|
reason | MonitorExitReason |
Returns
void
clear()
clear(): void;Defined in: packages/ui/src/semihosting-console.ts:74
Clear the output and exit status.
Returns
void