python get current treminal position linux -mouse code example
Example: python console width
import os
rows, columns = os.popen('stty size', 'r').read().split()
import os
rows, columns = os.popen('stty size', 'r').read().split()