From 30ba6516745347f6a979c7f0763284938c0c62e8 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Thu, 6 Dec 2018 00:10:51 -0700 Subject: [PATCH] Removing report wrapping section * Doesn't work properly with background processes --- .bin/Scripts/functions/sensors.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.bin/Scripts/functions/sensors.py b/.bin/Scripts/functions/sensors.py index 41508927..29ceaa45 100644 --- a/.bin/Scripts/functions/sensors.py +++ b/.bin/Scripts/functions/sensors.py @@ -1,9 +1,7 @@ # Wizard Kit: Functions - Sensors -import itertools import json import re -import shutil from functions.tmux import * @@ -59,14 +57,6 @@ def generate_report(sensor_data, *temp_labels, colors=True): report.append(_line) report.append(' ') - # Wrap lines if necessary - screen_size = shutil.get_terminal_size() - rows = screen_size.lines - 1 - if len(report) > rows and screen_size.columns > 55*2: - report = list(itertools.zip_longest( - report[:rows], report[rows:], fillvalue='')) - report = [join_columns(a, b) for a, b in report] - # Handle empty reports (i.e. no sensors detected) if not report: report = [