Skip to content

Instantly share code, notes, and snippets.

View omeroot's full-sized avatar

Ömer Demircan omeroot

  • Istanbul
View GitHub Profile
@omeroot
omeroot / omer.py
Created October 23, 2015 14:35 — forked from erayarslan/omer.py
for ömer <3
import sys
import os
import time
def get_terminal_size(fd=1):
try:
import fcntl, termios, struct
hw = struct.unpack('hh', fcntl.ioctl(fd, termios.TIOCGWINSZ, '1234'))
except:
try: