How does jline work internally

57 views
Skip to first unread message

Adwaith H Sivam

unread,
Mar 10, 2023, 6:48:38 AM3/10/23
to jline-users
I decided to build a minimal REPL app using Java. I plan to implement history for this. So I need to know how to edit the input line of a the terminal and get arrow key presses. How does jline do this?

PS: I tried going through the source code. But I didn't understand anything.

Thank you.

Guillaume Nodet

unread,
Mar 10, 2023, 6:58:13 AM3/10/23
to jline...@googlegroups.com
I suggest to first look at the Repl demo from jline and see how you can build from it.
JLine offers builtin support for history and implementing a REPL app can be done easily:

--
You received this message because you are subscribed to the Google Groups "jline-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jline-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jline-users/b73f166a-ddcf-4687-971f-f75249c0f133n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages