Bug #151 was traced back to line 141, inside the set_text function on core.progress:
def set_text(text=None):
if text and config.dual_line:
run.text, run.suffix = ('\n', to_cells(str(text))), term.cursor_up_1.sequence
When the bar is disabled, term is set to terminal.VOID (line 204 of same file):
if config.disable:
term, hook_manager = terminal.VOID, passthrough_hook_manager()
However, when examining terminal.VOID, its factory_cursor_up function doesn't define a sequence attribute as the other terminals do (lines 9 - 15 of utils.terminal.void):
Bug #151 was traced back to line 141, inside the
set_text
function oncore.progress
:When the bar is disabled,
term
is set toterminal.VOID
(line 204 of same file):However, when examining
terminal.VOID
, itsfactory_cursor_up
function doesn't define asequence
attribute as the other terminals do (lines 9 - 15 ofutils.terminal.void
):which results in the exception being thrown, since
term.cursor_up_1
does not have a.sequence
attribute.I've fixed this by simply adding an empty sequence to void's
_ansi_escape_sequence
: