Skip to content

Native Windows Support #1

Open
Open

Description

@cmang

Durdraw 0.15 actually worked alright in Windows (in Command Prompt, Windows Terminal, etc) with windows-ncurses installed, but the latest build (0.17.2) has issues.

The issue seems to have started when I started using curses panels. Curses.panel.move() returns ERR. I haven't investigated too deeply, but some possible theories are that the Windows curses clone does not fully implement panels, or maybe that it needs a bit more care with the order things are done in. It would be nice if someone would help track down and fix the Windows issues.

Activity

  1. cmang commented on Nov 10, 2023

    @cmang
    MemberAuthor

    This appears to be caused by windows-curses having an incomplete or broken implementation of panels:

    zephyrproject-rtos/windows-curses#11

    Unfortunately the only workaround I'm aware of at the moment is to run Durdraw under Windows Subsystem for Linux. This precludes it from running in the MS-DOS Prompt window, Powershell window, etc.

  2. changed the title [-]Feature Request: Windows Support[/-] [+]Crashes in Windows 10: curses.panel.move() returns ERR[/+] on Nov 10, 2023
  3. added
    blocked by upstream
    and removed on Nov 10, 2023
  4. cmang commented on Jan 25, 2024

    @cmang
    MemberAuthor

    It looks like, in addition to WSL, Durdraw can be used in Windows through Docker. This works in the Command Prompt Window, Powershell window, etc. No obvious problems.

    The upside is that it works. The downside is, Docker is a pretty heavy requirement. A self-contained .exe would be nicer.

  5. added a commit that references this issue on Dec 1, 2024
  6. cmang commented on Sep 24, 2026

    @cmang
    MemberAuthor

    If someone really wants to get Durdraw running natively in Windows without any Linux/docker/wsl help, for example as an .exe in a Command Prompt window, it's going to take a few tricks:

    1: Eliminate the need for curses.panel. It is an optional module in Curses that, while rock solid in UNIX, is broken in Windows. This can be done by simulating enough of the panels module for Durdraw to work, IE making a fake panels. or just re-writing the code not to use panel sat all. You could also fix panels upstream in the windows-curses Python module.

    Durdraw uses panels to hide, show and move around certain parts of the UI, like the color picker.

    2: If OS is Windows/NT, replace Unix paths (like /etc/dudraw, ~/.durdraw, etc) with Windows equivalents.

    I think those are the only things holding it back. Then the same codebase could run on either OSs.

  7. changed the title [-]Crashes in Windows 10: curses.panel.move() returns ERR[/-] [+]Windows Support[/+] on Sep 24, 2026
  8. added and removed
    blocked by upstream
    on Sep 24, 2026
  9. changed the title [-]Windows Support[/-] [+]Native Windows Support[/+] on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions