Skip to content

Instantly share code, notes, and snippets.

View juanmc2005's full-sized avatar
🎯
Focusing

Juan Coria juanmc2005

🎯
Focusing
View GitHub Profile
@jtriley
jtriley / terminalsize.py
Created July 26, 2011 21:58
Get current terminal size on Linux, Mac, and Windows
#!/usr/bin/env python
import os
import shlex
import struct
import platform
import subprocess
def get_terminal_size():
""" getTerminalSize()