Skip to content
Components/Data displayIntroduced in 1.3.0

ETerminal Terminal ​

import EUI 1.0

Examples ​

Commands and history ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Custom command ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Async command ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Command error ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Custom prompt ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Properties ​

PropertyDescriptionValues and default
promptstring

Prompt before terminal input.

Default"$"
welcomestring

Message displayed above terminal output.

Default""
historyLimitint

Maximum retained commands and output records; minimum 1.

Default200
commandHandlervar

Handler accepting a command and returning output or a Promise.

Defaultnull
busyboolRead only

Waiting for a command result; prevents another command from starting.

Defaultstate.busy
inputaliasRead only

Terminal command input control.

DefaultcommandInput
entriesvarRead only

Terminal output entries containing command, output and error.

Defaultstate.entries

Signals ​

SignaturePurpose
submitted(string command)

Emitted when a command is submitted; command is the entered command text.

completed(string command, string output, bool error)

Emitted when command execution finishes; command is the command, output is its output, and error indicates failure.

Methods ​

SignaturePurpose
clear()

Clear the current contents or selection.

write(text, error)

Append text to the terminal; display it as an error when error is true.

execute(command)

Execute the terminal command specified by command.

Released under the MIT License. Third-party assets retain their own licenses.