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
println("$(mod(i,9))"^i)
end
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.
@Ronis_BR, the key “freeze panes” functionality (say, freeze 1 row and 1 column) does not seem to be working on TerminalPager v0.2.1 and Julia 1.6.1.
(both Win10 and linux)
It is working here. I entered in the pager and typed f, then the command line as for the number of rows and columns to freeze. Can you please describe what you are doing?
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?