CLI - Paging long CLI output

Version 3

    Paging long CLI output

     

    Analysis

    Summary

    Offer a workflow to navigate long content in a paged way.

    Requirements

    In interative mode only, it doesn’t apply to script nor redirected output, if the page is longer than the terminal height, a workflow is proposed to the user.

    The percentage of displayed output is print similar to “more” command. If ‘space’ is typed, then a new page is printed. If ‘return’ is typed, a new line of content is printed  until there are no more content to display. If ‘q’ or ‘Ctrl-C’ is typed, the user exists the workflow and the prompt is displayed.

     

    Nice to Have Requirement

    Ability to turn the paging off using a configuration item (<page-output>true|false</page-output>. By default paging is enabled.

    Design Notes

    General

    Product Issue(s)

    https://issues.jboss.org/browse/EAP7-735

    Upstream Issue(s)

    https://issues.jboss.org/browse/WFCORE-426

    Developer Contacts

    Jean-François Denise (jdenise@redhat.com)