prompt fix

This commit is contained in:
Will McGugan 2020-07-23 16:49:07 +01:00
parent 077acd5bea
commit 70d43d7c92
15 changed files with 141 additions and 91 deletions

View file

@ -13,7 +13,7 @@ from rich.highlighter import Highlighter
class RainbowHighlighter(Highlighter):
def highlight(self, text):
for index in range(len(text)):
text.stylize(index, index + 1, str(randint(16, 255)))
text.stylize(str(randint(16, 255)), index, index + 1)
rainbow = RainbowHighlighter()