siipale@sopuli.xyz 9 months ago
A ‘pager’ is a utility that takes a markup text (say, Roff) and displays that text, formatted, in the terminal. The first pager was nroff(1) for the aforementioned Roff, and you may still find nroff(1) on UNIX-based systems.
Wouldn’t it be less or more (or most) that is the pager part and roff being the part that does formatting for terminal. As far as I understand roff does the runoff of the text file. It formats the text properly and inserts all the necessary escape codes for terminal. Then that can be piped to pager which shows the text page by page.
Looks like an interesting project. Didn’t try it but looked into the source code and I think there was not really any keybindings similar to less. I suggest adding at least g, G, C-f and C-b.
But would it be possible for this project to utilize external pager? That would make the development easier.
Chubak@lemmy.world 9 months ago
Yeah I think you’re right about that one. The pagers are more/less, not nroff. I’m not sure how I can combine key in ncurses. Gotta look it up. Thanks again.