[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

get the terminal's size

> On Mon, 14 Jan 2019 11:57:33 +0000, Alex Ternaute wrote:
> > Hi there,
> > 
> > I want to know the number of columns of the terminal where python2 writes 
> > it's outputs.

A couple days late to the party, a discussion of several ways I tried:
and the script I ended up with:

(I've only tested these on Linux).