Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows version refuses to work under Wine #645

Open
unxed opened this issue Sep 30, 2024 · 5 comments
Open

Windows version refuses to work under Wine #645

unxed opened this issue Sep 30, 2024 · 5 comments
Labels
Resolution-External For issues that are outside this codebase Terminal Built-in terminal emulator

Comments

@unxed
Copy link

unxed commented Sep 30, 2024

https://github.com/directvt/vtm/releases/latest/download/vtm_windows_x86.zip

$ wine --version
wine-9.0 (Ubuntu 9.0~repack-4build3)
$ wine ./vtm.exe -r term
0088:err:system:NtUserChangeDisplaySettings Changing L"\\\\.\\DISPLAY1" display settings returned -2.
0088:err:explorer:initialize_display_settings Failed to initialize registry display settings for L"\\\\.\\DISPLAY1".

изображение

$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=22
DISTRIB_CODENAME=wilma
DISTRIB_DESCRIPTION="Linux Mint 22 Wilma"
@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Sep 30, 2024

Thanks for the report. Could you try running vtm with the specified shell?

wine ./vtm.exe -r term cmd.exe

PS: I don't know how much this is allowed in Wine and what environment it has.

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Sep 30, 2024

ERROR_INVALID_HANDLE

6 (0x6)

The handle is invalid.

Most likely it won't work. Apparently the Console Server is implemented there somehow differently than in the real Windows system. I use an undocumented Win32 API there.

@o-sdn-o o-sdn-o added bug Something isn't working Terminal Built-in terminal emulator labels Sep 30, 2024
@unxed
Copy link
Author

unxed commented Sep 30, 2024

Thanks for the report. Could you try running vtm with the specified shell?

изображение

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Sep 30, 2024

Of all the options that are currently available, probably only the following will work in that environment, but only as a demo (although not very consistent, as on real Windows):

wine ./vtm.exe -r test
wine ./vtm.exe -r gems
wine ./vtm.exe -r calc
wine ./vtm.exe -r text
wine ./vtm.exe -r truecolor

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Oct 1, 2024

Looking at the Wine source, it seems that a number of necessary APIs are not implemented there.

  • ntdll.spec:
    @ stub CsrClientCallServer
    
  • win32u.spec:
    @ stub NtUserConsoleControl
    

Maybe someday I'll come up with a workaround for this.

@o-sdn-o o-sdn-o added Resolution-External For issues that are outside this codebase and removed bug Something isn't working labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-External For issues that are outside this codebase Terminal Built-in terminal emulator
Projects
None yet
Development

No branches or pull requests

2 participants