-1

I have a very long 'print' of Aruba commands output that I created using Python in Visual Studio Code.

Is there a way to increase the output size in the Terminal so that more of the output commands can be seen?

sammysosa
  • 1
  • 4
  • how long is it? because you can scroll through the output console, so unless it's thousands of lines, you should be able to see it. – Mahrkeenerh Oct 07 '21 at 20:37
  • 2
    If it is very, very long maybe you can think of redirecting the output to the file instead? – tpwo Oct 07 '21 at 20:38
  • @Mahrkeenrh It is 1,201 lines so far. Is there a setting I can change to have the console see more lines? – sammysosa Oct 07 '21 at 21:01
  • @trivvz Is there a python code that you know of that can output this to a file? maybe something that I could stick onto the end of this long code? – sammysosa Oct 07 '21 at 21:02
  • @sammysosa, you can do it when running the command from shell. In bash/powershell you can use `>` to redirect the standard output to the file. Eg. `python my_script.py > output.txt` – tpwo Oct 07 '21 at 21:07
  • @sammysosa, you can do it also from Python itself if you prefer, take a look [here](https://stackoverflow.com/a/4675744/14458327) – tpwo Oct 07 '21 at 21:08

1 Answers1

0

You can modify this in the settings.json file:

"terminal.integrated.scrollback":1000;

The default value of it was 1000.

Steven-MSFT
  • 7,438
  • 1
  • 5
  • 13