JShell by default enables a persistent history of everything typed, which can be recalled by pressing the up arrow.
Where is the setting to turn this ❝feature❞ off?
Also, how do I even clear the current history? Maybe I'm dumb but I can't figure out the command. /reset
seems to do nothing.
/help /history
doesn't display one either), considering/history -all
is what you're referring to. Possibly looking into github.com/jline/jline2/wiki/Configuration-Properties and making use of one such might help. Btw, I'd reached there from the article by Robert Field => cr.openjdk.java.net/~rfield/tutorial/….... and to understand better, what is the need of doing that anyway? – Leveridge