electron-nodepty directory contains an experimental version
of DomTerm as a combined frontend and backend using Electron and node.js.
but replaces the
lws-term server part with Electron code.
node.js may make building and install domterm easier,
as there are fewer dependencies, and they can mostly be handled by
The code is more compact and easier to understand than the C code.
Runs on native Windows (without needing WSL), using node-pty.
Uses Electron ipc instead of WebSockets.
The Electron instance is not daemonized. Could use
or daemon node module.
No support for auto-input-mode due to missing tcgetattr hook.
No way to put process pid and ttyname in
DOMTERM environment variable.
(Maybe fix by hacking
No support for using other non-Electron front-ends, including using a web-browser. (Could be implemented, of course, by adding server for http and WebSockets.)
You will probably need to
the easiest way is to use
cd $DOMTERM_DIR/electron-nodepty npm install npm install --save-dev electron-rebuild $(npm bin)/electron-rebuild --version $(electron --version)
hlib/domterm-version.js built from
hlib/domterm-version.js.in by the
If you don’t have the shell and other Unix-style tools to
generate and run
configure, you can cheat by
cd $DOMTERM_DIR/hlib && cp domterm-version.js.in domterm-version.js
To start DomTerm do: