[Tutor] ANSI / VT100 Escape Codes in Windows 7 Environment
Chip Wachob
wachobc at gmail.com
Thu Feb 28 08:38:25 EST 2019
Wow! What a treasure of information.
>From the looks of it, I'm going to give colorama a try. It seems like it
will do what I want to do, and, if I'm reading the documentation correctly,
it will work cross platform. Ie: if I am in Linux, it will simply be
ignored. And, it appears to interpret the ANSI codes (\033[xxxm) when it
comes to Windows...
As an aside, I enjoyed the trip down memory lane. I still have my Hercules
graphics card and my AMBER monitor for my 286 machine. You know, the
machine that has two full-height HDD with an MFM interface and provides a
combined 20Mbyte of storage space! And of course a math co-processor... I
no longer recall how many Kbytes of onboard memory I had, maybe 1024... :)
Thank you so much for sharing your insights.
Best,
On Wed, Feb 27, 2019 at 9:40 PM boB Stepp <robertvstepp at gmail.com> wrote:
> On Wed, Feb 27, 2019 at 6:50 PM Chip Wachob <wachobc at gmail.com> wrote:
> >
> > Hello again,
> >
> > As always, this list has been very helpful, and thank you.
> >
> > So, I thought I was good to go until I attempted to run my code on a
> > Windows 7 vintage machine this morning. The application is intended to
> be
> > run in the command window in Windows, from the terminal in Linux...
> >
> > In the code I had included the ANSI escape characters so I could invert
> the
> > text and change the color. Basically, I wanted to make the warning /
> error
> > messages stand out from the crowd.
>
> As I have been on a "curses" kick lately, I wonder if it would work
> for you? Of course this means another module, but it is in the
> standard lib on all non-Windows Python versions. For Windows I found
> this thread on stackoverflow:
>
>
> https://stackoverflow.com/questions/32417379/what-is-needed-for-curses-in-python-3-4-on-windows7
>
> The checked answer gives a link to binaries for Windows, which seems
> to support all Python versions through 3.7, including 2.7.
>
> Just a thought...
>
> --
> boB
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list