Terminal - Autocompletion

An autocomplete model can be also provided for the terminal, which will enable the autocompletion feature on the component.
Autocompletion can be triggered using the TAB key. In case there are more alternatives for arguments, these can be clicked to override the current input.

Try any of the following inputs as an example:

  • TAB
  • git + TAB
  • svn co + TAB
  • git pus + TAB + TAB + TAB

Documentation
Welcome to PrimeFaces Terminal, how are you today?
prime $
<h:form>
    <p:focus for="terminal" />

    <p:terminal id="terminal" widgetVar="term"
                commandHandler="#{terminalAutoCompleteView.handleCommand}"
                autoCompleteModel="#{terminalAutoCompleteView.autoCompleteModel}"
                welcomeMessage="Welcome to PrimeFaces Terminal, how are you today?" />

    <p:commandButton type="button" value="Clear" icon="pi pi-trash" onclick="PF('term').clear()" style="margin-top:10px"/>
</h:form>

FREE THEMES

Built-in component themes created by the PrimeFaces Theme Designer.

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.