M
M
Mor2020-11-13 20:54:50
linux
Mor, 2020-11-13 20:54:50

"Online noVNC client" how to paste text into terminal?

I use the "noVNC" online client ( https://novnc.com/info.html ).
The question is simple. How can I paste text from the clipboard into the terminal?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mor, 2020-11-14
@Bourbon11

RESOLVED!
1. Open a window with the input place we need (in my case, this is the noVNC tab in the browser).
2. Open the terminal on top of this window (now we will recognize its id).
3. We write in the terminal: xdotool selectwindow.
4. A specific cursor will appear to highlight the window, click on the window we need to enter text.
5. We return to the terminal, there the id of our window is already waiting for us.
6. We write in the terminal:

xdotool type --window [полученный только-что id окна] [текст который нужно ввести]
.
7. Voila!
Also in the xdotool tool there are many other interesting and very useful functions, delay, mouse commands, pressing specific keys, etc.

G
Gregory, 2020-11-14
@Maxlinus

https://github.com/eclipse/che/issues/18328
https://youtu.be/y0-UUlOJvmU

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question