[Domterm-discuss] domterm mouse-clicking

Per Bothner per at bothner.com
Wed Jan 11 18:30:56 PST 2017


I just checked in a nice feature, inspired by some MacOs terminals:

If you control-click in the current input line, DomTerm will simulate as many
left-arrow/right-arrow key-presses as needed to move the cursor to where you clicked.

Related to that, a question: which modifier key should enable this?
On MacOS, other terminals use Option-click, which I gather
is the same as alt-click.  On Linux/Windows we could use
either ctrl, alt, or meta.  Using alt would be easiest, since
then the JavaScript would be the same on all platforms.
Any reason not to?

For now, this feature is limited to movement within the current
logical line (i.e. wrapped lines work).
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/


More information about the Domterm-discuss mailing list