-
Notifications
You must be signed in to change notification settings - Fork 255
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
Please ship WindowsTerminal along with rest of the binary classes #422
Comments
Unfortunately, the native bindings library was more of an experiment and was never 100% functional. As long as it's experimental, I don't think it would be a good idea to distribute it to Maven central. |
if people on windows OS would test & PR this module into shape, then things
might be different...
mabe02 <[email protected]> schrieb am So., 18. Aug. 2019, 15:22:
… Unfortunately, the native bindings library was more of an experiment and
was never 100% functional. As long as it's experimental, I don't think it
would be a good idea to distribute it to Maven central.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#422?email_source=notifications&email_token=ABIDBMWT3AG3JNNYRQW5FDTQFFEHZA5CNFSM4HWSYNUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4Q76AY#issuecomment-522321667>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABIDBMUQ4PHCLUOULYLI2IDQFFEHZANCNFSM4HWSYNUA>
.
|
@mabe02 I had a crack at it over the weekend and got it working, after many many hours of debugging. Since They key was figuring out that on Windows the |
Interesting! Did you write this from scratch or did you base it off the experimental work we've done in native-integration? |
I started out with your code base to debug the issue. |
|
What would be really nice is if we auto-detect if JNA is available at runtime and only then load the WindowsTerminal class. Not sure if we can use the "optional" dependency feature in Maven for this (on jna) to make it compile at build time. Just want to avoid Lanterna pulling in JNA as a transient dependency when it's really only used in special case. |
I'd make I'd probably also change the factory to default to using the Swing Terminal Emulator, even if we have a console window already, instead of the most-likely non-functional Cygwin implementation, and get rid of that |
I've read up on the optional tag and that seems like what we want, as it won't be included as a transitive dependency. Is you code you linked to above in a state where you think we can merge it? |
I've done some testing with So setting |
You will also need to add a |
Ok, here what we'll do. I'll branch of master into |
@jrb0001 will the |
@mabe02 Yes, I tested that with the |
There, that should do it! I've tested and it seems to work fine. |
Just for confirmation, this feature got merged but there is no published artifact that includes it (including the beta)? If it's still too experimental at this moment for a release of some kind, I can try building from source and report my findings (though Scala + SBT makes source dependencies kind of tricky... so it's not terribly ideal, but I'll manage). I'm not sure if anybody is using the Windows terminal yet, but considering it's pretty important for one of my projects I can try helping with any potential bug fixes and testing. |
I thought we had released a beta with this...? Let me check... |
Ah, because I put this on master. But I can make an alpha release of 3.2 for you. |
Thanks. That would be great. 👍 |
Having some issues with my gpg key not working with Sonatype, but should be available in a day or two |
Ok, finally. 3.2.0-alpha1 released to Sonatype, should be available shortly on Maven central. |
Thanks! I tried this in my project and it works. All I had to really do is add the JNA dependency: reibitto/command-center#85 I haven't run into any bugs or anything like that so far. |
Currently, the version of the library available from the Maven Central lacks
WindowsTerminal
class.Please ship
WindowsTerminal
plus native code for win32/win64 along with the rest of the library.Additionally, lanterna can have an optional dependency on the native-platform library which already ships the native primitives for all mainstream platforms.
WindowsTerminal
could be re-implemented via those primitives -- seeWindowsConsoleFunctions.java
.The text was updated successfully, but these errors were encountered: