See attached screenshot -- when I execute man ls
, since the output of man is greater than my current terminal window size, the output display is paused until I click the spacebar. We should have something similar...currently, man displays the entire output & then I have to use the scrollbar to scroll to the beginning of the man content.
|
42 KB
Pagination is not a trivial task, unfortunately all of pagination related implementation is all embedded in the \more command at the moment. I made change to derive \help from \more so that \help can leverage and customize SOME of \more's pagination code.
On UNIX, the status header displayed at the bottom of the screen initially set to:
'Manual page command-name line N'
where N is the line number of the first line on the current page. Once end of man page is reached, the status header will change to:
'Manual page command-name line N/M P%'
where M is the total number of line the man page has, P% is the percentage.
On UNIX, when end of man page is reached, man command won't quit, and you can go backward from there, the status header will remain as:
'Manual page command-name line N/M P%'
In FS, the status header is always displayed as:
'Manual page command-name P%'
and 'line N' is not supported; and once end of page is reached, \man just simply terminates.
Similar to more command, pagination is enabled on executing man command via source command; bash does this as well. The difference is, bash/man won't terminate when end of page is reached, FS/man will terminate and continue to the next command.
Issue #7776 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build trunk/29886 |
No time estimate |
Pagination is not a trivial task, unfortunately all of pagination related implementation is all embedded in the \more command at the moment. I made change to derive \help from \more so that \help can leverage and customize SOME of \more's pagination code.
On UNIX, the status header displayed at the bottom of the screen initially set to:
'Manual page command-name line N'
where N is the line number of the first line on the current page. Once end of man page is reached, the status header will change to:
'Manual page command-name line N/M P%'
where M is the total number of line the man page has, P% is the percentage.
On UNIX, when end of man page is reached, man command won't quit, and you can go backward from there, the status header will remain as:
'Manual page command-name line N/M P%'
In FS, the status header is always displayed as:
'Manual page command-name P%'
and 'line N' is not supported; and once end of page is reached, \man just simply terminates.
Similar to more command, pagination is enabled on executing man command via source command; bash does this as well. The difference is, bash/man won't terminate when end of page is reached, FS/man will terminate and continue to the next command.