Skip to content

Instantly share code, notes, and snippets.

@thiswillbeyourgithub
thiswillbeyourgithub / terminalsize.py
Created July 4, 2021 10:02 — forked from jtriley/terminalsize.py
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()