mt.shutil

Additional shutil stuff related to the terminal.

Instead of:

import shutil

You do:

from mt import shutil

It will import shutil plus the additional stuff implemented here.

Please see Python package shutil for more details.

Functions

mt.shutil.stty_imgres()

Gets the terminal resolution.

Returns the Linux-compatible console’s number of letters per row and the number of rows. If the information does not exist, returns (128, 72).

mt.shutil.stty_size()

Gets the terminal size.

Returns the Linux-compatible console’s number of rows and number of characters per row. If the information does not exist, returns (72, 128).