3 ms·
Can you tell me which OS you're using? In Linux and OS X the less command should keep the output in the screen after you press 'q'.
by amjith 11y ago
Can you tell me which OS you're using?
In Linux and OS X the less command should keep the output in the screen after you press 'q'.
- chx 11y agoI am on Linux too and it doesn't. Not just this tool: in general.
- amjith 11y agoIf 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.