Skip to content

ANSI colour codes are broken #4

@TabbyToffee

Description

@TabbyToffee

If you use an ANSI colour code, you will exceed the grid size before you reach the end of the console.
Here is some example code:

from consoledraw import Console

console = Console()

printOut = ""

while True:
	with console:
		console.print(printOut)

	printOut += "\033[0;32;40mHello Goodbye  "

The code gives an error before it reaches the end of the screen:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions