I'm writing a program in Python, the data I want it to show must be able to fit on the screen at the same time without needing to scroll around. The default command line size does not allow for this.
Is there any way to automatically resize a command line window in Python without creating a GUI? The program will only be used on windows.
import os
os.system('mode con: cols=100 lines=40')
raw_input("Press any key to continue...")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With