Questions tagged [pager]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
20 views

Auto page down / scrolling after a few seconds using more, less, or something similar

When using more or less, the output is paused at the end of each page. Is there some way to have it pause only for a few seconds (configurable or not), and then continue to the next page? Is there ...
user avatar
  • 111
5 votes
1 answer
237 views

How to avoid the "pager" in mailx?

Having many short mail messages in my inbox, it's quite annoying that even short messages are sent though a pager (less), requiring to press 'q' before I can view the next message (for example). I ...
user avatar
  • 801
0 votes
1 answer
27 views

Make `less` exit after last page or `more` interpret colors

In a script, I’m doing a git diff that I want to quickly page through. When I’m finished, the pager will exit and the script will continue. more is great for the task, because I can space through it ...
user avatar
1 vote
1 answer
48 views

lesskey: add alt+right keybinding to less

I used cat -vte to see what escape codes my terminal emulator sends when I press alt+right: ❯ cat -vte ^[[1;3C Then I added this escape code to my lesskey file ~/.less: \e[1;3C forw-scroll Finally ...
user avatar
  • 1,287
1 vote
1 answer
53 views

How does the shell decide when to invoke a pager?

Some shell commands that produce large outputs, such as git diff, seem to cleverly throw up a pager when the output is too long, but not do so if it happens to be small. How does this work? Does each ...
user avatar
  • 149
1 vote
0 answers
36 views

In Less, how to jump horizontally between search matches on the same line?

On pressing n, Less skips all the search matches in the current line and moves to the next line with a match (even if the lines are wrapped). How can I make it move the cursor to all the matches in ...
user avatar
-1 votes
1 answer
86 views

Is there a more interactive man and info pages viewer?

If I use man to view man pages, they are not interactive at all, I can merely change the visuals through a pager. With info I can view man and info pages with interactive links, including the links in ...
user avatar
  • 395
3 votes
1 answer
68 views

less doesn't page the output when called inside env

After an update I noticed that my bash profile for man colorization breaks paging. I don't know what changed but I narrowed it down to the fact that calling env less hello.txt results in contents of ...
user avatar
1 vote
0 answers
80 views

Bash: how do I pipe the output of every command through "less --quit-if-one-screen"?

When I run some commands in Bash, I have no idea how many number of lines the output will be. If the number of lines in the output exceeds the height of my terminal, I will not be able to see the ...
user avatar
  • 1,802
1 vote
1 answer
49 views

Horizontal scrolling pager with vi keys

less and most use j and k, but they don't use h and l for horizontal scrolling. Is there a way I can fix either of these to do that? or maybe an alternative tool that I could use as a pager that does ...
user avatar
0 votes
3 answers
319 views

Why are PAGER, EDITOR, VISUAL empty?

When I try to use those environment variables, I get an empty string: $ $PAGER some_file; bash: some_file: command not found $ I tested a few things: $ echo $PAGER; $ man man; ## Here it's using ...
user avatar
  • 222
0 votes
1 answer
112 views

How to set background color of $PAGER?

I usually set my terminal with transparent background. But, when I need to read a lot of text such as man, less, cat, etc., I want my background color to be solid black. I can change the backgrounds ...
user avatar
  • 1
1 vote
1 answer
79 views

prevent less linewrapp from breaking words -- split on white space only

I want less's linewrapping to be smarter... when lessing through text it's wrapping lines in such a way that words get broken up which makes reading difficult. The smart way would mean only breaking ...
user avatar
  • 989
0 votes
0 answers
20 views

How to use normal output with systemctl instead of less/more? [duplicate]

For example: systemctl list-units --type service by default uses redirection to less/more, how to disable it?
user avatar
  • 1
7 votes
1 answer
428 views

less - How to get matching line not be the top line on screen?

Very often happens that I do $ man someprogram to inspect the manual for some program. Often I also want to search for something in there, and I simply hit / and write whatever I want to search for. ...
user avatar
  • 1,012
2 votes
1 answer
149 views

How can I display only the first screenfull of output, including all terminal colours, and lines that will be wrapped? [duplicate]

I have a command (a compiler) that can output lots to the terminal when there's a compilation problem. Some of the lines are longer than my terminal is wide, and it also uses terminal colours (red ...
user avatar
0 votes
1 answer
26 views

How do I get source highlighting via source-highlight for most?

I can get source highlighting to work with lesspipe or GNU source-highlight, but both depend on environment variables that are specific to less. How would I get syntax highlighting in most?
user avatar
  • 109
0 votes
2 answers
307 views

Obtaining starting adress of a page

I want to obtain the beginning of a memory page, a page that contains a function. In my case I try to achieve the page beginning of main function. Which lies in 0x400a80, I think it is in code ...
user avatar
  • 1
1 vote
0 answers
75 views

How to prevent less --quit-if-one-screen --no-init +G from filling the screen with empty lines when the file is shorter than the screen?

I use less -XFR +G to page some variations of git log, and all four options are important. The thing I don't like is that it fills the screen with empty lines (marked with ~) when the log/file is ...
user avatar
  • 1,012
1 vote
1 answer
127 views

Getting error when searching within an info page

I'm using the Fish shell on openSUSE Tumbleweed (20200414). I am able to initially search for a string within an info page by typing '/string'. However, when I try to search for the next occurrence ...
user avatar
3 votes
2 answers
123 views

How to search for end-of-line hyphenated words in less(1)

Does less (or any other lightweight pager I could use as $PAGER) has such a feature? For example, if I type man bash and then enter /incorporates it doesn't find the word, despite it being right ...
user avatar
0 votes
1 answer
307 views

Why is `man` outputing to stdout instead of $PAGER (less)?

When I run man [program], the man page text is output on the terminal (a la cat, without a pager that provides interactivity) instead of opening the man page file in less (so you can scroll, search, ...
user avatar
2 votes
1 answer
153 views

Why doesn't Esc-[ scroll left in `less`?

According to the manpage for lesskey, the following keys are bound to left-scroll and right-scroll: \e[ left-scroll \e] right-scroll \e( left-scroll \e) right-scroll \kl ...
user avatar
0 votes
0 answers
45 views

Bashrc not loading when running manpager

I have found issues with using the MANPAGER variable in bash in order to set vim to be my manpager. Initially I set my manpager using the method shown in :help manpager by doing: export MANPAGER="...
user avatar
5 votes
2 answers
156 views

Restore interactive commands after accidentally overpaging pipe input to less?

Consider a script like this: $ cat example.sh #! /usr/bin/env bash for i in {1..90} do printf '%s\n' "$i" done sleep 10 printf '91\n' sleep 10 printf 'done\n' and suppose the output is piped to ...
user avatar
0 votes
2 answers
76 views

less: advertise terminfo through pipe

If I do ls | less, ls detects that it isn't connected to a terminal, which is fair enough. Except that less is connected to a terminal. In this setup, ls could produce the coloured and columnised ...
user avatar
1 vote
2 answers
470 views

navigating forward in more pager using f

It is given in the man page of more that f is used to skip forward k screenful of text(default to 1).I saved a very long file using cat and used more to show it on the screen page by page but when i ...
user avatar
  • 409
-2 votes
1 answer
75 views

Unable to search a string using more pager

I opened a file using the more pager,i was trying to find a string in this file using / as shown in the figure below,but it is saying that pattern not found even though the string i have searched is ...
user avatar
  • 409
1 vote
1 answer
533 views

man pages no longer rendering - lots of "permission denied" errors related to pager / vimpager

For reasons I can't determine, within the last two days the "man" command stopped working on my linux server (Ubuntu 18.04). When attempting to run man <anything> I end up at a blank instance ...
user avatar
  • 477
6 votes
1 answer
7k views

changing default (man) pager

I'm working on Solaris 10, using bash. Want to change default pager from "more" to "less" (because "less is more" :). Tried to do the following: PAGER=less PS. When I do it in csh via setenv PAGER ...
user avatar
  • 113
2 votes
0 answers
353 views

How can I keep colorful terminal output, but disable pagers

On macOS man uses the pager "/usr/bin/less -is" (see man's man page). When I type man , I see colorized output, and I like this. But, I prefer to use the terminal's find commands when using man, and ...
user avatar
  • 141
3 votes
3 answers
492 views

Using 'less' to leave text on screen for small files

I'm pretty sure seeing this customization of the less command on some colleague system long ago, in order to imitate 'more'. What I want: If the file is short (less that one screen long), it should ...
user avatar
  • 585
0 votes
1 answer
155 views

Lightweigtht pager with links?

Are there any pagers/readers/viewers for the use inside the Linux terminal that can follow links to the same page and different files (not necessarily on the net) which have an simpler markup language ...
user avatar
  • 109
4 votes
1 answer
2k views

Jumping to end/beginning of line in "less -S"

The commonly used pager less can be started with the option -S, prevents it from breaking lines. One can then press the right and left arrow keys to scroll horizontally. Since the lines can be quite ...
user avatar
10 votes
2 answers
2k views

Is it possible to scroll beyond the end of a file in the less pager?

Is it possible to scroll past the bottom in less? Ideally, I'd like to be able to see the last line of the file I am viewing at the top of my terminal window (the rest of the screen may be filled ...
user avatar
2 votes
1 answer
97 views

Custom terminal with less

Currently I have this in my "~/.profile": export PAGER='env TERM=fox less' However I just realized that this only works with "man", and not if you do something like this: less /etc/DIR_COLORS to ...
user avatar
  • 5,652
7 votes
1 answer
1k views

Change Search Highlight Color In Less

I am a bit lost here on customizing the search/find highlight color or font format if you will. I understand that using LESS_TERMCAP_* we can alter the font format of less display. Full capabilities ...
user avatar
  • 504
0 votes
1 answer
386 views

How to configure the keybinddings of "most", a pager in Linux

I've recently discovered the pager "most". most can make the manpages colorful and I like it. I want to change some of its bound keys and from the manpage of most I found out it's possible to do that. ...
user avatar
  • 784
0 votes
1 answer
934 views

How to show desktop pager in KDE for one virtual desktop [closed]

I have KDE5 plasma and one virtual desktop. I tried to show desktop pager in panel for one virtual desktop, but without succesfull. In KDE4 I made change in script here '/usr/share/kde4/apps/plasma/...
user avatar
  • 121
1 vote
1 answer
1k views

GRUB scrolls off top of screen

I'm entering commands at the GRUB2 prompt on Debian 9. If I run e.g. help or lsmod, there is more than one screens-worth of output, and it just scrolls off the top so I can only read the last screen. ...
user avatar
  • 44.3k
0 votes
3 answers
3k views

Bash always outputs to less, how can I turn this off?

After a recent update bash seems to always output to less, which is resulting in pagination for many commands. Does anyone know how to turn less off? Example output for systemctl status
user avatar
0 votes
1 answer
1k views

How to use terminfo to set colors for man and less?

I saw this question where the answerer uses termcap to define colors for less which then could be used for how man could be displayed. It said while termcap is obsolete, it's easier while terminfo is ...
user avatar
  • 10.7k
42 votes
3 answers
3k views

How do some tools (e.g. nano , less) manage to leave no content in terminals after exit? [duplicate]

Whenever I use a pager like less or an editor like nano in the shell (my shell is GNU bash), I see a behaviour I cannot explain completely and which differs to the behaviour I can observe with other ...
user avatar
5 votes
2 answers
756 views

Is there a interactive filter tool when paging output?

I would like to take the output from a program and interactively filter which lines to pipe to the next command. ls | interactive-filter | xargs rm For example, I have a list of files that a ...
user avatar
1 vote
1 answer
342 views

Should I set PAGER environment variable, alias or symbolic link?

I noticed that when using aliases, some programs launch pager directly (either from PATH or through PAGER). I'd like to define default pager for all cases, not just when I type the command. Should I ...
user avatar
  • 1,147
16 votes
1 answer
2k views

Is there any way of changing most keybindings to something more familiar?

most pager is nice, but its default keybindings are unlike any other. As I don't want to learn a whole new set of keybindings for my pager (no matter how fancy and wonderful it is), is there any way ...
user avatar
  • 431
8 votes
2 answers
1k views

Is there a graphical pager?

Does someone know of a GUI application (X/GTK+/Qt/whatever) that can be used instead of less or more for viewing text, specifically one piped in from standard input? Ideally looking for something that ...
user avatar
  • 10.8k
2 votes
1 answer
188 views

Set debugfs pager

I do not want pager to clear screen when using debugfs. Have tried things like, as per man for debugfs: export PAGER='less -FX' debugfs foo bar export DEBUGFS_PAGER='less -FX' debugfs foo bar ...
user avatar
  • 1,827
2 votes
2 answers
1k views

How to get out of opened documents in the terminal?

I use to press CTRL+C, but there are some cases where this key combination doesn't work. E.g. if you open the perl docs: perldoc File::Path The documentation is presented on the terminal and I can't ...
user avatar
  • 123
0 votes
1 answer
39 views

Kubuntu 15.10, pager appears twice

The desktop switcher on my taskbar appears twice, once on the left side, once on the right. Also I cannot position it anywhere I like. Does anyone know how I can delete one of the desktop switchers ...
user avatar
  • 125