X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=text_utils.py;h=39b8fe3e3db64266aeaeaad4d92503be393017e9;hb=e46158e49121b8a955bb07b73f5bcf9928b79c90;hp=6437e62930d754bc7303e0550f262eee0b6746f1;hpb=ba21e38cdb3d504a69f6808913ea2a649ab4e916;p=python_utils.git diff --git a/text_utils.py b/text_utils.py index 6437e62..39b8fe3 100644 --- a/text_utils.py +++ b/text_utils.py @@ -44,6 +44,7 @@ def get_console_rows_columns() -> RowsColumns: rows: Optional[str] = os.environ.get('LINES', None) cols: Optional[str] = os.environ.get('COLUMNS', None) if not rows or not cols: + logger.debug('Rows: %s, cols: %s, trying stty.', rows, cols) try: rows, cols = cmd( "stty size", @@ -54,6 +55,7 @@ def get_console_rows_columns() -> RowsColumns: cols = None if rows is None: + logger.debug('Rows: %s, cols: %s, tput rows.', rows, cols) try: rows = cmd( "tput rows", @@ -63,6 +65,7 @@ def get_console_rows_columns() -> RowsColumns: rows = None if cols is None: + logger.debug('Rows: %s, cols: %s, tput cols.', rows, cols) try: cols = cmd( "tput cols",