In some places, we use print statement inside __repr__ to print ansi colors, this is too much annoying while e.g. typing in kosmos shell, as characters are printed everywhere.
For example in JSXObject.py:
def __repr__(self):
# FIXME: breaks in some cases in docsites generation needs to be cleanly implemented
out = self._str_get(ansi=True)
# # #TODO: *1 when returning the text it does not represent propertly, needs to be in kosmos shell I think
# # IS UGLY WORKAROUND
print(out)
return ""
prompt-toolkit support printing formatted text, so, this seems to be resolvable.
In some places, we use
print
statement inside__repr__
to print ansi colors, this is too much annoying while e.g. typing inkosmos
shell, as characters are printed everywhere.For example in
JSXObject.py
:prompt-toolkit support printing formatted text, so, this seems to be resolvable.