DomTerm/Kawa integration - two new features

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

DomTerm/Kawa integration - two new features

Per Bothner
The DomTerm terminal emulator ( has two
new features Kawa users may find valuable.
(These require the latest Kawa from gitlab.)

(1) The Kawa REPL now supports moving the cursor by clicking the mouse
when run under DomTerm.  This works using either the readline front-end
(enabled by the configure flag --enable-kawa-frontend) or when using
the JLine3 input editor.  When editing multi-line commands using
JLine3 you can also move the cursor between lines, not just within a line.

Wrapped lines (longer than the terminal width) works,
as does middle-button paste.

This works by DomTerm calculating the "distance" between the
clicked position and current cursor position, and
sending the corresponding number of arrow-key events.

(2) Error and warning messages from the Kawa Compiler
are now emitted as clickable links with file: URLs.
By default, when you click on the link, it opens an
emacs window pointing at the erroneous position.
However, you can customize this:

The line-and-column location is turned into
'#position=LINE:COLUMN' added to the end of the URL.
If the file being loaded or compiled has a relative
file name, the file: URL will include the directory
path, though this won't show in the error message.
(You can see the actual URL by hovering over the link.)
        --Per Bothner
[hidden email]