Open RustyJoeM opened 2 years ago
Hey, sorry it took so long to get back to you.
Here's what it looks like on Linux:
So, it might be a windows thing. Unfortunately, I don't have a windows box to test this on, but if you can find the issue, feel free to submit a PR on it.
I have the same issue. It might be an issue with the yansi crate on Windows.
You can always make your own prompt with repl-rs, see this PR
Hello, I had the same issue and found some discussions in the rustyline repo which explains the behavior:
The result is more or less that the prompt passed to the readline function should not contain any escape sequence. It seems that this problem appears only on Windows.
When you wan't to use a colored prompt you have to implement the highlight_prompt function for the Helper struct.
With the changes in this PR it is working for me. Unfortunatley I can't run the tests (are they requiring a Linux system?) so I can't check whether my changes broke something else.
Hello,
when i try to run examples with current "head" (git log - 2474e4785db205e0327a5359d6d41af52d830dc8), The REPL line has a wrong cursor position - there seems to be some constant offset/space between REPL prefix "MyApp>" and line being written:
Not sure if this is windows specific or behaves the same on *nix environment.