How to debug python + curses? [was: RE: Applying winpdb_reborn]

boB Stepp robertvstepp at gmail.com
Wed Jun 2 00:21:02 EDT 2021


On Tue, Jun 1, 2021 at 12:20 PM Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
>
> On Tue, 1 Jun 2021 08:04:54 +1000, Cameron Simpson <cs at cskk.id.au>
> declaimed the following:
>
> >On 30May2021 20:36, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> >>On Mon, 31 May 2021 08:07:21 +1000, Cameron Simpson <cs at cskk.id.au>
> >>declaimed the following:
> >>>Open another terminal, note its terminal device with the "tty"
> >>>command.
> >>>Start your programme like this:
> >>>    python ...... 2>/dev/tty-of-the-other-termina
> >>>
> >>      The OP specified Win10, so the above is dead from the start.
> >
> >Good point; I wasn't aware that curses worked in Windows.
>
> https://docs.python.org/3/howto/curses.html
> "The Windows version of Python doesn’t include the curses module. A ported
> version called UniCurses is available."
>
>         Appears the easiest is to PIP "windows-curses" then track down
> piecemeal installs (it is unclear if UniCurses includes PDCurses, or needs
> that as a separate install).

windows-curses 2.2.0 has been working well for me so far on Win10:
https://pypi.org/project/windows-curses/

"Adds support for the standard Python curses module on Windows. Based
on these wheels. Uses the PDCurses curses implementation."

boB Stepp


More information about the Python-list mailing list