changes the behavior of over.text to not render into paragraphs when logging to files

This commit is contained in:
Martinez 2017-03-15 11:15:38 +01:00
parent 2dfa580c75
commit 9a1ffccbc8
2 changed files with 5 additions and 3 deletions

View file

@ -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)
# --------------------------------------------------

View file

@ -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