In mc
(midnight commander), I can define custom command for viewing files, ie:
shell/i/.jpg
Open=gpicview %f
View=file %f | less
The command file %f
has to be piped to a pager. I am using here less
as example.
The problem with less is, it displays the one line in the middle of the screen, and adds these characters:
~
~
(END)
I just need the simplest, stupidest possible pager that does nothing other than display what it receives from pipe redirection. Something like the cat
command, which does not add anything to a file that it is displaying.
What can I use instead of less
?
Or can I configure less
to hide those special characters?
UPDATE:
OK, I have fixed some of the problems in less
by using the options --tilde
and --clear-screen
. However, less
still shows (END)
at the bottom of the page.
Can I get rid of the (END)
?
If there is no configuration option for that, how could I change it in the sourcecode (I am OK with recompiling less package)
I am using less
on Debian 10. less --version
shows:
less 487 (GNU regular expressions)
View=file %f | cat
inmc.ext
, it does not work. Nothing happens.clear; file %f; read
Use {Enter} to quit