But wouldn’t this other @help macro most probably do a similar thing (meaning it’s unlikely that a user would use both)? To me it sounds a bit like an interpolation package that doesn’t want to define interpolate because it could clash with other interpolation implementations .
julia> @stdout_to_pager for i = 1:100
Is for a different example where you print a random 100x100 matrix.
Also, do you have any plans to make this a REPL mode? That way when you are using TerminalPager, you could hit a key to enter the pager mode, where all outputs are sent to the pager. Similar to how ? and ] work with the help and the package manager right now.
After digging into the internals of Pkg.jl, I could create a REPL mode! In this case, it should works just like the julia command line for all output that fits on the screen. If the output is larger, then if uses the pager.
In this case, I am getting the output from display of the returned object and also everything that was printed to stdout. Hence, pretty_table will also work here.
I just need to polish it a little bit because some functionalities are not working, like pasting commands with julia> prefix.
P.S.: The REPL stdlib is very nice and the customization options are amazing! It just need better documentation. I will add it to my todo list.
There are so many nice things that can be done with those modes!
It worked here. Notice that the first column is frozen and the first line also. The first column in this example contains 1 in the first row and only spaces afterwards. The first line is being shown even though we are not at the first line. Can you provide a screenshot?