get the terminal's size

Alex Ternaute alex at lussinan.invalid
Mon Jan 14 08:11:21 EST 2019


Hi,

Peter Otten :

>> In a terminal, I type $ echo $COLUMNS 100
>> But in Python, os.getenv("COLUMNS") gets nothing.
>> I feel that I'm missing something but what ?

> $ export COLUMNS 

Thank you very much !
-- 
Aelx



More information about the Python-list mailing list