<div dir="ltr"><div class="gmail_extra">There's a nice setting of LESS where you pipe it to less plus the options that say "don't scroll if it fits in the window entirely", basically making the less pipe a no-op unless the window is too small.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Here's how systemd does it:</div><div class="gmail_extra"><a href="http://git.zx2c4.com/systemd/tree/src/shared/pager.c#n89">http://git.zx2c4.com/systemd/tree/src/shared/pager.c#n89</a><br>
</div></div>