jline / jline2

Jline 2.x
http://jline.github.com/jline2/
Other
713 stars 182 forks source link

how could i redefine the end character of the string line #279

Closed AlexPeng19 closed 6 years ago

AlexPeng19 commented 7 years ago

while i am using jline2, i find that each time i press enter, jline will treat as current command finished. but i want to change as input ; and press enter, current command finished.

i am not sure whether you get what i mean. i searched a lot, did not find some blogs or guide to resolve this problem. could you give some solution.

thanks and regards Alex

fantasyzh commented 7 years ago

Press enter just finish the current line, not the current command, you determine which line finish the command, so one command can have multiple lines, until some line ends with your end character. You just can not edit the finished lines any more.

gnodet commented 6 years ago

JLine 3 has full multi-line support.