3 ms·
If you have 'less' on your system then it should work because I'm manipulating the options that are passed into less. I'm setting the less options here: https:/
by amjith 11y ago
If you have 'less' on your system then it should work because I'm manipulating the options that are passed into less. I'm setting the less options here: https://github.com/dbcli/mycli/blob/master/mycli/main.py#L426 https://github.com/dbcli/mycli/blob/master/mycli/main.py#L42...
You can try that from the command line yourself. Try:
less -SRXF <filename.txt>
That should print the file and not clear the screen when you press 'q'.
You can also override the pager to change from less to something else right from inside mycli. For example:
amjith@localhost:(none)> pager cat
That will use cat instead of less for paging the output and that should keep the output in the screen but it won't page them like less.