Skip to content

Instantly share code, notes, and snippets.

Just finished today's work


Just finished today's work
  • NYU Shanghai
View GitHub Profile
jtriley /
Created Jul 26, 2011
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()
You can’t perform that action at this time.