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

Disable Event Expansion for Strings Containing Exclamation Marks '!' #25

Closed
els-chinnr opened this issue Apr 17, 2020 · 1 comment
Closed

Comments

@els-chinnr
Copy link

I've found text-io to be very useful while building a console based application but have run into an issue when using StringInputReader().

If a string is entered which contains '!' e.g. 'sometext!somemoretext', then jline.console.ConsoleReader attempts to expand events from the string which raises an exception...

java.lang.IllegalArgumentException: !somemoretext: event not found

...is it possible to disable event expansion for a StringInputReader, as this is not required for my application?

@siordache
Copy link
Member

I just released the version 3.4.1, where the event expansion is disabled by default.
(You can enable it back by settting the system property 'jline.expandevents' to 'true'.)

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