escape char with PyScripter

27 views
Skip to first unread message

Vincent MAILLE

unread,
Feb 13, 2022, 7:21:14 AM2/13/22
to PyScripter
Hello,
   
      Is it possible to configure PyScripter, to make possible this code running :

ESCAPE = "\x1b"
BLACK = "[30m"
BLUE = "[34m"
RED = "[31m"
for i in (RED, BLUE, BLACK):
    print(ESCAPE + i + "colored text")

Thanks,
Vincent

PyScripter

unread,
Feb 13, 2022, 7:24:13 AM2/13/22
to PyScripter
I am afraid not.  At least not with the current version.  These escape sequences work in a true console.  PyScripter is capturing the console output and redirects it to a GUI window.

Vincent MAILLE

unread,
Feb 15, 2022, 6:22:08 AM2/15/22
to PyScripter
OK, that's what I thought. Thank you for your reply !

Regards,
Vincent
Reply all
Reply to author
Forward
0 new messages