From 9a1ffccbc84a5b6f328434806f5ff61caddcc10f Mon Sep 17 00:00:00 2001 From: Martinez Date: Wed, 15 Mar 2017 11:15:38 +0100 Subject: [PATCH] changes the behavior of over.text to not render into paragraphs when logging to files --- over/text.py | 4 +++- over/version.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/over/text.py b/over/text.py index 761220a..ae90285 100644 --- a/over/text.py +++ b/over/text.py @@ -377,6 +377,8 @@ class Output: def get_terminal_size(): """ Returns current terminal's (rows, cols). + + If this can't be determined, returns a large enough number to turn it off. """ terminal = sys.stdout.fileno() @@ -384,7 +386,7 @@ def get_terminal_size(): try: return struct.unpack("HHHH", fcntl.ioctl(terminal, termios.TIOCGWINSZ, struct.pack("HHHH", 0, 0, 0, 0))) except IOError: - return (40, 80) + return (64000, 64000) # -------------------------------------------------- diff --git a/over/version.py b/over/version.py index 09972bb..3e88bda 100644 --- a/over/version.py +++ b/over/version.py @@ -4,5 +4,5 @@ major = 1 # VERSION_MAJOR_IDENTIFIER minor = 99 # VERSION_MINOR_IDENTIFIER # VERSION_LAST_MM 1.99 -patch = 18 # VERSION_PATCH_IDENTIFIER -str = "1.99.18" # VERSION_STRING_IDENTIFIER +patch = 19 # VERSION_PATCH_IDENTIFIER +str = "1.99.19" # VERSION_STRING_IDENTIFIER