Terminal Terminal commands are handled by a server side listener. "greet {text}" and "date" are sample commands.
Welcome to PrimeFaces Terminal, how are you today?
prime $
<h:form>
    <p:focus for="terminal" />

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

    <p:commandButton type="button" value="Clear" icon="ui-icon-trash" onclick="PF('term').clear()" style="margin-top:10px"/>
</h:form>
                
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.2-SNAPSHOT on Mojarra-2.3.2.