Skip to content

[DEMO] embedding in DomTerm #135

@PerBothner

Description

@PerBothner

I implemented an experimental option to use ghostty-web as the core terminal emulator for DomTerm. In fact, you can run one terminal using ghostty-web (lower left), one terminal using xterm.js (lower right), and one term using "DomTerm classic" (top) - all at once:

Image

You can drag the sub-windows around, including to other top-level windows, or to the desktop. Here the ghosttty-web sub-window was dragged out to the desktop.

Image

If you want to try it, clone this and:

cd DomTerm
./autoreconf -i
./configure --with-ghostty=/path/to/ghostty-web
make
bin/domterm ghostty=true

To display the terminal, DomTerm supports Electron, Qt, Tauri/Wry, as well as generic web-browers.

There are various problems, of course. One is it would be nice to control mouse right-click, and to handle custom keystrokes. I get some ugly hortizonal lines on Electron - perhaps a font metrics problem. Another is that without full serialization support drag-and-drop might only work within a single top-level window, though cross-window dragging should work if using the Qt or Electron front-ends.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions