Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

So that means that adding a new dialect should be relatively simple.

Prompts

LineReader#readLine among other arguments has prompt and right  prompt value.

Widgets

Jline allows to define widgets implementing org.jline.reader.Widget and bind them to key strokes.

...

Supported prompt options (both for left and right prompts)

OptionDescription
\cCurrent catalog
\dCurrent database
\:name:The value of Flink name property
\[ ... \]

Prompts can contain terminal control characters which, for example, change the color, background, or style of the prompt text.

These non-printing control characters must be designated as invisible by surrounding them with \[ and \].

Multiple pairs of these can occur within the prompt.

\DThe full current date (yyyy-MM-dd HH:mm:ss.SSS)
\mMinutes of the current time
\nNew line character
\OThe current month in three-letter format (Jan, Feb, …)
\oThe current month in numeric format
\Pam/pm
\RThe current time, in 24-hour military time (0–23)
\rThe current time, standard 12-hour time (1–12)
\sSeconds of the current time
\tA tab character
\wThe current day of the week in three-letter format (Mon, Tue, …)
\YThe current year, four digits
\yThe current year, two digits
\\A literal \ backslash character
\x

x, for any x not listed above

Compatibility, Deprecation, and Migration Plan

...