How to make Jline3 ignore the exclamation mark at the beginning of the line

13 views
Skip to first unread message

Pavel

unread,
Jan 13, 2025, 11:49:47 AMJan 13
to jline-users
Hello everyone,

I use jline 3.21. The problem is that it removes the exclamation mark at the beginning of the line. For example, if a user enters "!myCommand", I get fom lineReader.readLine() only "myCommand". I need the exclamation mark for my own commands. At the same time I want to provide history navigation using arrow up and down keys. 

Could anyone say how to do it?

Best regards, Pavel

Reply all
Reply to author
Forward
0 new messages