-
Notifications
You must be signed in to change notification settings - Fork 218
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] Add support for ConPTY #947
Comments
Afaik, there's no wintpy use in jline. Having said that I was meant to ask @gnodet what it'd look like to add pty process support into jline? There is pty4j(uses conpty with fallback to winpty) from JetBrains but it has its own issues making it difficult to rely on. It'd be quite nice feature to run external command with pty from jline based app. Something I've been looking to support in We could start by implementing these via ffm(jvm22+) and then look if there's any interest for supporting older jvm's via jni. |
Right. When running in a windows console, JLine access the windows api to control it.
I'm not completely sure what you'd want to achieve here. For example, you have a JLine based app running in a console, and you want to launch a |
Yeah |
Ok. I think JLine could be a good location for this feature. Out of curiosity, what usage do you foresee for it ? The two implementations seem to come from Intelij IDEA and Eclipse so that they can run real terminals/shells inside the IDE. JLine is more oriented toward console mode application, so it's more unusual to spawn another terminal. |
As of Windows 10, Windows now has the ConPTY API, which behaves similarly to the POSIX PTY APIs, making it possible to use real pseudoconsoles on Windows, without needing to use hacks like WinPTY, which spawn a hidden conhost session off‑screen and scrape its output.
Refs:
The text was updated successfully, but these errors were encountered: