You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
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.
Activity
cmang commentedon Nov 10, 2023
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.
[-]Feature Request: Windows Support[/-][+]Crashes in Windows 10: curses.panel.move() returns ERR[/+]cmang commentedon Jan 25, 2024
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.
Merge pull request #81 from tmck-code/durview-reduce-frame-redraws
cmang commentedon Sep 24, 2026
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.
[-]Crashes in Windows 10: curses.panel.move() returns ERR[/-][+]Windows Support[/+][-]Windows Support[/-][+]Native Windows Support[/+]