-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shift + mouse-drag no longer copies text to the system clipboard in Terminal & SSH addon #3608
Comments
Yes, this is infuriating. It's very hard to discover that you have to place mouse outside the window (in fact has to be to the left) before releasing the mouse button. If not a bug this should at least be documented. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still an issue |
It is still an issue. I'm having the exact same behavior (not copying to the clipboard unless the cursor is outside the terminal window when the mouse button is released). |
still an issue. And community discussion of this issue is since Oct 2018, 19 users, 6 years. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still does not behave as specified in the documentation. Please fix this as it makes the terminal much less useful. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still an issue that needs to be addressed. |
This is still a really irritating issue I have tested on Windows and Linux OS's, trying both Firefox and Chrome on both OS. |
I can't even get it to copy by dragging the mouse outside the window. Resorted to directing output of the command to homeassistan/aaaa then using file editor to look at the file aaaa:
then edit the file aaaa and you see the following:
A ridiculous work around but easier than typing that UID |
Unfortunately same issue here too with ha0s13.2 (no copy and paste)- I don't get the same issue with homeassistant-core though. |
@sairon @agners @frenck could you please point in direction where and what was changed that may have possibly caused the issue, so we can create PR? I am looking at https://github.com/home-assistant/addons/tree/de30123a5c930830590ae2db0c946f4d4273968d/ssh - is ssh console served by ssh server or something else? |
@romanr The web SSH console is ttyd served by the add-on. It's installed in the Dockerfile, the version is defined in |
I canot find any combination of any keystrokes or clicking that appears to work on a Mac with home assistant terminal add-on. This is incredibly frustrating for copying logs out for example. This really needs to have a workable solution. |
Describe the issue you are experiencing
Copy text from the Terminal window using shift + mouse select no longer copies the selected text into the host system's clipboard.
It used to be possible to hold the shift key down while selecting text in the terminal window using the left mouse button, after the left mouse button was released, a scissor icon would briefly appear in the terminal window and the selected text would be in the client system's clipboard, ready to be pasted. As described in the documentation for the addon:
Now the scissor icon no longer appears, plus the system clipboard is left unaltered.
Client is Windows 10, Version 22H2 (OS build 1905, 4412).
Running the Home Assistant app:
Core 2024.5.4
Supervisor 2024.05.1
Operating System 12.3
Frontend 20240501.1
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Which add-on are you reporting an issue with?
Terminal & SSH
What is the version of the add-on?
9.14.0
Steps to reproduce the issue
1 Open the terminal window
2 press and hold the shift key on your keyboard
3 point your mouse in front of the text in the terminal window you want to copy
4 press and hold the left mouse button
5 drag the mouse cursor to the end of the text to copy (a gray-ish box will appear over the text)
6 release the left mouse button
7 try and paste the text into some other window (for example a notepad window)
System Health information
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Spotify
Anything in the Supervisor logs that might be useful for us?
Anything in the add-on logs that might be useful for us?
I don't see anything relevant in the log (the killing was me trying anything). The full log contents follows: Terminal & SSH [2024/05/23 21:53:29:1871] N: __lws_lc_tag: ++ [wsisrv|0|adopted] (1) [2024/05/23 21:53:29:1908] N: HTTP / - 172.30.32.2 [2024/05/23 21:53:29:7367] N: HTTP /token - 172.30.32.2 [2024/05/23 21:53:29:8566] N: WS /ws - 172.30.32.2, clients: 1 [2024/05/23 21:53:29:8931] N: started process, pid: 200 [2024/05/23 21:53:55:0497] N: WS closed from 172.30.32.2, clients: 0 [2024/05/23 21:53:55:0498] N: killing process, pid: 200 [2024/05/23 21:53:55:0499] N: __lws_lc_untag: -- [wsisrv|0|adopted] (0) 25.862s [2024/05/23 21:53:55:0523] N: process killed with signal 0, pid: 200 [2024/05/23 21:55:33:2242] N: __lws_lc_tag: ++ [wsisrv|1|adopted] (1) [2024/05/23 21:55:33:2256] N: HTTP / - 172.30.32.2 [2024/05/23 21:55:33:6202] N: HTTP /token - 172.30.32.2 [2024/05/23 21:55:33:7823] N: WS /ws - 172.30.32.2, clients: 1 [2024/05/23 21:55:33:8081] N: started process, pid: 220 [2024/05/23 22:03:30:4889] N: WS closed from 172.30.32.2, clients: 0 [2024/05/23 22:03:30:4890] N: killing process, pid: 220 [2024/05/23 22:03:30:4891] N: __lws_lc_untag: -- [wsisrv|1|adopted] (0) 7.954min [2024/05/23 22:03:30:4907] N: process killed with signal 0, pid: 220 [2024/05/23 22:04:58:9464] N: __lws_lc_tag: ++ [wsisrv|2|adopted] (1) [2024/05/23 22:04:58:9479] N: HTTP / - 172.30.32.2 [2024/05/23 22:04:59:3978] N: HTTP /token - 172.30.32.2 [2024/05/23 22:04:59:5513] N: WS /ws - 172.30.32.2, clients: 1 [2024/05/23 22:04:59:5782] N: started process, pid: 243 [2024/05/23 22:05:25:8308] N: WS closed from 172.30.32.2, clients: 0 [2024/05/23 22:05:25:8309] N: killing process, pid: 243 [2024/05/23 22:05:25:8311] N: __lws_lc_untag: -- [wsisrv|2|adopted] (0) 26.884s [2024/05/23 22:05:25:8335] N: process killed with signal 0, pid: 243 s6-rc: info: service legacy-services: stopping [2024/05/23 22:06:31:8025] N: received signal: SIGTERM (15), exiting... [2024/05/23 22:06:31:8029] N: send ^C to force exit. [20:06:31] INFO: Service restart after closing [20:06:31] INFO: Service restart after closing s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting cont-init: info: running /etc/cont-init.d/apks.sh fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz v3.19.1-577-gb3ea1811daf [https://dl-cdn.alpinelinux.org/alpine/v3.19/main] v3.19.1-575-gd679707d49e [https://dl-cdn.alpinelinux.org/alpine/v3.19/community] OK: 23043 distinct packages available (1/1) Installing sqlite (3.44.2-r0) Executing busybox-1.36.1-r15.trigger OK: 96 MiB in 102 packages cont-init: info: /etc/cont-init.d/apks.sh exited 0 cont-init: info: running /etc/cont-init.d/keygen.sh [22:08:27] INFO: Restoring host keys... cont-init: info: /etc/cont-init.d/keygen.sh exited 0 cont-init: info: running /etc/cont-init.d/profile.sh cont-init: info: /etc/cont-init.d/profile.sh exited 0 cont-init: info: running /etc/cont-init.d/ssh.sh [22:08:27] INFO: Setup authorized_keys cont-init: info: /etc/cont-init.d/ssh.sh exited 0 s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting services-up: info: copying legacy longrun sshd (no readiness notification) services-up: info: copying legacy longrun ttyd (no readiness notification) [22:08:28] INFO: Starting Web Terminal... [2024/05/23 22:08:28:0333] N: ttyd 1.7.4-fa1ee59 (libwebsockets 4.3.3-v4.3.3) [2024/05/23 22:08:28:0335] N: tty configuration: [2024/05/23 22:08:28:0336] N: start command: tmux -u new -A -s homeassistant bash -l [2024/05/23 22:08:28:0336] N: close signal: SIGHUP (1) [2024/05/23 22:08:28:0336] N: terminal type: xterm-256color s6-rc: info: service legacy-services successfully started [2024/05/23 22:08:28:0354] N: /usr/lib/libwebsockets-evlib_uv.so [2024/05/23 22:08:28:0356] N: lws_create_context: LWS: 4.3.3-v4.3.3, NET CLI SRV H1 H2 WS ConMon IPV6-off [2024/05/23 22:08:28:0357] W: lws_create_context: unreasonable ulimit -n workaround [2024/05/23 22:08:28:0358] N: elops_init_pt_uv: Using foreign event loop... [2024/05/23 22:08:28:0360] N: __lws_lc_tag: ++ [wsi|0|pipe] (1) [2024/05/23 22:08:28:0362] N: __lws_lc_tag: ++ [vh|0|netlink] (1) [2024/05/23 22:08:28:0363] N: __lws_lc_tag: ++ [vh|1|default||8099] (2) [2024/05/23 22:08:28:0364] N: [vh|1|default||8099]: lws_socket_bind: source ads 0.0.0.0 [2024/05/23 22:08:28:0365] N: __lws_lc_tag: ++ [wsi|1|listen|default||8099] (2) [2024/05/23 22:08:28:0365] N: Listening on port: 8099 [22:08:28] WARNING: SSH port is disabled. Prevent start of SSH server. [2024/05/23 22:19:29:6354] N: __lws_lc_tag: ++ [wsisrv|0|adopted] (1) [2024/05/23 22:19:29:6368] N: HTTP / - 172.30.32.2 [2024/05/23 22:19:30:0343] N: HTTP /token - 172.30.32.2 [2024/05/23 22:19:30:1535] N: WS /ws - 172.30.32.2, clients: 1 [2024/05/23 22:19:30:1891] N: started process, pid: 200 [2024/05/23 22:20:16:9736] N: WS closed from 172.30.32.2, clients: 0 [2024/05/23 22:20:16:9737] N: killing process, pid: 200 [2024/05/23 22:20:16:9738] N: __lws_lc_untag: -- [wsisrv|0|adopted] (0) 47.338s [2024/05/23 22:20:16:9758] N: process killed with signal 0, pid: 200 [2024/05/23 23:05:07:1785] N: __lws_lc_tag: ++ [wsisrv|1|adopted] (1) [2024/05/23 23:05:07:1798] N: HTTP / - 172.30.32.2 [2024/05/23 23:05:07:6355] N: HTTP /token - 172.30.32.2 [2024/05/23 23:05:07:7514] N: WS /ws - 172.30.32.2, clients: 1 [2024/05/23 23:05:07:7778] N: started process, pid: 219 [2024/05/23 23:20:18:2707] N: __lws_lc_tag: ++ [wsisrv|2|adopted] (2) [2024/05/23 23:20:18:2723] N: HTTP / - 172.30.32.2 [2024/05/23 23:20:23:2783] N: __lws_lc_untag: -- [wsisrv|2|adopted] (1) 5.007s
Additional information
Copy used to work before with older HA versions, but I'm not sure when it stopped working. I think it was one of the HA 2024.4.x or maybe 2024.3.x versions where I last successfully used it.
After much experimenting I found that the scissor icon still does appear and the text does get put onto the clipboard when at the moment the mouse button is released, the mouse cursor is outside the terminal window. i.e. if i position the mouse cursor after the text, press and hold shift, then drag over the text past the side the terminal window (= the mouse cursor moves outside the terminal window) and only there release the mouse button, the text does get copied.
The text was updated successfully, but these errors were encountered: