Input Style

Free Themes

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

Saga Saga
Vela Vela
Arya Arya

Legacy Free Themes

Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink
Nova Nova
Nova Nova Alt
Nova Nova Accent

PREMIUM TEMPLATES

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

Terminal AutoComplete

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
Welcome to PrimeFaces Terminal, how are you today?
prime $

<div class="card">
    <h:form>
        <p:focus for="terminal"/>

        <p>Try any of the following inputs as an example:</p>
        <ul style="line-height: 1.5" class="p-m-0 p-pl-6">
            <li>TAB</li>
            <li><i>git</i> + TAB</li>
            <li><i>svn co</i> + TAB</li>
            <li><i>git pus</i> + TAB + TAB + TAB</li>
        </ul>

        <p:terminal id="terminal" widgetVar="term" styleClass="p-mt-5"
                    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()" styleClass="p-mt-3" />
    </h:form>
</div>