Is your feature request related to a problem? Please describe.
Various commands like TYPE, LIST, and DIR support the P flag, which causes output to emitted through a basic pager (basically a more clone). There are two issues with the pager:
- It only scrolls down one screen at a time; it cannot page up or scroll line-by-line, as modern pagers can. It might not be possible to get all of the lines I want to see together on a single screen, even if they would physically fit.
- Quitting page mode via
Q causes the first two lines of output to scroll off the screen when the BASIC interpreter prints its READY prompt. This can defeat the use of handy shortcuts like / and ↑ that work with DIR output.
Describe the solution you'd like
All of the following would be useful to me:
- Support for paging up, as well as down (perhaps with the left and right cursor keys)
- Support for scrolling line-by-line (probably with the up and down cursor keys)
- One of the following:
- Support for scrolling up past the start of the document, in order to bring the lines I need closer to the bottom of the screen.
- Rendering each screen with a two-line gutter at the bottom, so that all output is preserved upon quit.
Describe alternatives you've considered
Line ranges (like LIST supports) would address several of my use cases, since they can be used like head, or to view an arbitrary range of lines when the line numbers are known. To get the most out of this, the pager would probably need to support displaying line numbers, and then we would have two types of line numbers: physical line numbers, and logical/explicit line numbers for BASIC programs. So a souped-up pager seems like the cleaner solution.
Is your feature request related to a problem? Please describe.
Various commands like
TYPE,LIST, andDIRsupport the P flag, which causes output to emitted through a basic pager (basically amoreclone). There are two issues with the pager:Qcauses the first two lines of output to scroll off the screen when the BASIC interpreter prints itsREADYprompt. This can defeat the use of handy shortcuts like/and↑that work withDIRoutput.Describe the solution you'd like
All of the following would be useful to me:
Describe alternatives you've considered
Line ranges (like
LISTsupports) would address several of my use cases, since they can be used likehead, or to view an arbitrary range of lines when the line numbers are known. To get the most out of this, the pager would probably need to support displaying line numbers, and then we would have two types of line numbers: physical line numbers, and logical/explicit line numbers for BASIC programs. So a souped-up pager seems like the cleaner solution.