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

Clearing the buffer in LineReader #910

Closed
naotoj opened this issue Dec 7, 2023 · 0 comments
Closed

Clearing the buffer in LineReader #910

naotoj opened this issue Dec 7, 2023 · 0 comments
Milestone

Comments

@naotoj
Copy link

naotoj commented Dec 7, 2023

Hi,

Would it be possible to have some means to clear the underlying buffer used in LineReader? For some time, Console implementation in the OpenJDK uses JLine underneath, and there is a need to clear the contents in the buffer within JLine, such as reading the password input. We have implemented it in an ad-hoc way:
openjdk/jdk@bd04f91
openjdk/jdk@4ed38f5

It would be appreciated if this kind of functionality is added in LineReader

@gnodet gnodet added this to the 3.25.0 milestone Dec 21, 2023
@gnodet gnodet closed this as completed in ada11ff Dec 21, 2023
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

No branches or pull requests

2 participants