adamyg / mcwin32

Midnight Commander for Windows
https://sourceforge.net/projects/mcwin32/
210 stars 14 forks source link

Can not use on non graphical windows (like docker :( ) #33

Closed GillesRonsin closed 1 year ago

GillesRonsin commented 2 years ago

Hi, its a pitty, it seems than mc use graphical features on windows.. so it can't be use into light docker windows server images

is there a really text mode (like linux) ?

adamyg commented 2 years ago

Console mode

mc runs within a windows console. It is not running a graphical ui, unless in 256-color/hybrid mode on a legacy windows console; where it emulates 256 colors by direct gdi calls to the underlying console window.

More information required, i'm not familiar with the env you are referencing; links to suitable docs. Try running in b&w, --nocolor mode.

Windows server nano?

Is it throwing an error loading gdi32.dll. Nano has a specific set of Window32 API's that it supports; walk thru the mc map file against the nano doc if only GDI can look into dynamically loading gdi32.dll.

Note: gid32 might not be the only obstacle, others API's including several within shell32 and ole32 aren't available.

GillesRonsin commented 2 years ago

Hi Adam,

Its ok. I was running into a Windows container nanoserver which not allow 32 bits applications In a full server it is ok

Thx

Envoyé à partir de Courrierhttps://go.microsoft.com/fwlink/?LinkId=550986 pour Windows

De : @.> Envoyé le :mercredi 13 juillet 2022 14:04 À : @.> Cc : @.>; @.> Objet :Re: [adamyg/mcwin32] Can not use on non graphical windows (like docker :( ) (Issue #33)

mc runs within a windows console;, it is not running graphical ui; more information required. try firstly by running in b&w, --nocolor mode.

— Reply to this email directly, view it on GitHubhttps://github.com/adamyg/mcwin32/issues/33#issuecomment-1183136492, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADGPPWCJVJGV7R2RDZNGDXLVT2WEBANCNFSM53NV6U2A. You are receiving this because you authored the thread.Message ID: @.***>

adamyg commented 2 years ago

win64 builds are already possible, see Actions/mingw64.

The larger obstacle seems to be the available api's, to extent it is identified under a separate target family, WINAPI_FAMILY_SERVER verses WINAPI_FAMILY_DESKTOP. On a prelim review ignoring GDI based API's, additional not available include user/group networking/profile and sub-process management would need further research. Finally the console capabilities are unclear. An alternative build seems very likely given the scope of change.

adamyg commented 1 year ago

still look at 64bit build at a later time.