Skip to content

Instantly share code, notes, and snippets.

@mscalora
Last active June 19, 2016 12:50
Show Gist options
  • Save mscalora/b3c2f5011068cbd005788d762fc8c603 to your computer and use it in GitHub Desktop.
Save mscalora/b3c2f5011068cbd005788d762fc8c603 to your computer and use it in GitHub Desktop.
python -c "import subprocess ; print subprocess.check_output(['stty', 'size']).split()"
see: http://stackoverflow.com/questions/566746/how-to-get-console-window-width-in-python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment