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

MinGW support #401

Open
fleabitdev opened this issue Jun 15, 2020 · 2 comments
Open

MinGW support #401

fleabitdev opened this issue Jun 15, 2020 · 2 comments

Comments

@fleabitdev
Copy link

Hi folks,

We've recently started looking into shipping a command-line REPL for the GameLisp scripting language (fleabitdev/glsp#11), but it would need to provide working readline-like functionality when it's run on a fresh installation of MinGW.

MinGW's default console (Mintty) seems to be unsupported by all existing Rust crates, and GNU readline itself also seems to be broken on that console.

Are there any major problems which prevent rustyline from providing basic support for Mintty, or is it just something which hasn't been looked into yet? If I were to attempt to implement this feature myself, are there any obstacles I should know about?

(Some previous discussion at #203)

@gwenn
Copy link
Collaborator

gwenn commented Jun 15, 2020

My suggestion:
(a) try to find a Rust crate (not necessarily related to terminal) that uses some MinGW specific API (not the Windows API).
(b) try to find a similar library in any language (for example https://github.com/jline/jline3/search?q=mingw&unscoped_q=mingw , https://github.com/jline/jline3/blob/c36dcf4a99defe326ea8f7a9556ad9910acc9207/terminal/src/main/java/org/jline/terminal/TerminalBuilder.java#L345) which may support MinGW and draft your own Term.
(c) currently Term implementation is fixed at compile time but we should be able to make the decision at runtime time...

@gwenn
Copy link
Collaborator

gwenn commented Apr 21, 2024

For reference, crossterm-rs/crossterm#580

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants