Skip to content

Embedded terminal in custom plugin #16508

Answered by marusak
elcarn23 asked this question in Q&A
Discussion options

You must be logged in to vote

It definitely is possible and should not be even that difficult. You can take a look into https://github.com/cockpit-project/cockpit/blob/main/pkg/systemd/terminal.jsx and https://github.com/cockpit-project/cockpit/blob/main/pkg/lib/cockpit-components-terminal.jsx how we create our terminal.

What we use is just xterm.js (or even just patternfly console) as user facing interface and cockpit.channel for communication with the host. You can specify host option to connect to different hosts.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@elcarn23
Comment options

Answer selected by martinpitt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants