This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

DomTerm/Kawa integration - two new features


The DomTerm terminal emulator (http://domterm.org) 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:
http://domterm.org/Tips.html#link-handlers

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
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]