Skip to content

Fix windows support, replace the readline with pyreadline3#8

Merged
efJerryYang merged 3 commits intomainfrom
fix-windows-support
Mar 26, 2023
Merged

Fix windows support, replace the readline with pyreadline3#8
efJerryYang merged 3 commits intomainfrom
fix-windows-support

Conversation

@efJerryYang
Copy link
Copy Markdown
Owner

No description provided.

We can use `pyreadline3` instead of the default `readline` module, and
you can refer to the stackoverflow question for more details:
https://stackoverflow.com/questions/51157443/pythons-readline-module-not-available-for-windows
Directly use the way on Linux will cause the prompt on windows with a
duplicate input line string just after the correct prompt. This is caused
by the `readline.get_line_buffer()`, and it should be used for clearing the cache
rather than concatenating with the prompt string.
@efJerryYang efJerryYang force-pushed the fix-windows-support branch from a3e7757 to 49569f0 Compare March 26, 2023 10:36
@efJerryYang efJerryYang merged commit caf06e4 into main Mar 26, 2023
@efJerryYang efJerryYang deleted the fix-windows-support branch March 26, 2023 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant