Have tried things like, as per man for debugfs:
export PAGER='less -FX' debugfs foo bar export DEBUGFS_PAGER='less -FX' debugfs foo bar DEBUGFS_PAGER='less -FX' debugfs foo bar PAGER='less -FX' debugfs foo bar DEBUGFS_PAGER='less -FX' PAGER='less -FX' debugfs foo bar
but commands, for example
ls, still show a full screen page which are cleared after
What I should do is?
As per comment by thrig I created the file
.terminfo/xterm-nopager.terminfo from a copy of
infocmp, modified it to exclude
smcup and ran:
This works (besides, obviously, from options to less like
F not being honored.)
Is there a way to do this without modifying terminfo? I do not like to modify essentials like that on a global scale. (That is; I am not sure if I should care or not, so I do.)
Is this a bug in debugfs, as
man say one can override, or is it a consequence of other external environment? Is there a way to do this per command?