You can run your command(s) via a shellscript. (Maybe you do that already.) And at the end of the shellscript you add a line, for example like this:
read -p "Press Enter to close this window"
Then you can scroll the window and check the output from your command(s), and then press Enter to get rid of the terminal window.
I don't know why the first method did not work. Maybe your script or some program called by it is sending a signal that finishes the script at once (without reaching the final statement). You could try to fix that, but maybe it is easier to run in an xterm window (tweaked to look better and with the
Please compare how these two command lines work:
xterm -e cat ~/.bashrc
xterm -hold -e cat ~/.bashrc
You can tweak the xterm window to look better, for example like this
xterm -title "Click x in the top right corner to close me" -fa default -fs 10 -bg '#2b2c2b' -fg '#f0f0f0' -sb -rightbar -hold -e cat ~/.bashrc
Put the name of your script after -e in the xterm command line, or start the xterm in interactive mode (with the hold feature), and start your script in xterm.