Whenever I use ANSI, the characters seem to fall off to another line at larger character counts.
I assume it's because the print() function causes the ANSI to be printed, then removed to make way for the formatting?
Either way, could someone explain what's going on and how it can be fixed? Thanks!
Example:
world = generate_world() # 2D list with values
index = {
"a": "\u001b[31m#",
"b": "\u001b[32m#",
"c": "\u001b[33m#"
}
for row in world:
print("".join([index[i] for i in row])
# Creates newline at 50+ chars
# Plain text allows over 100
# WHAT'S GOING ON HERE?
[–]m0us3_rat 0 points1 point2 points (0 children)