isontheline / pro.webssh.net

iOS / iPadOS / macOS SSH Client
https://apps.apple.com/us/app/id497714887
MIT License
305 stars 44 forks source link

Paste from other programs only over one line and not multiple #1108

Closed srvh closed 4 months ago

srvh commented 5 months ago

When I copy and paste several commands from another application (Microsoft Word) to WebSSH... Commands like this:

ls -l /etc
systemctl status apache2

Then WebSSH will paste all commands in one line like this: ls -l /etc systemctl status apache2

So these commands are not working correctly. I have servers on Debian 12. I tried to make the same via macOS Terminal, it is working well. So it is not a problem of servers.

Please, fix it.

isontheline commented 5 months ago

Hello @srvh 👋

Thanks for reporting this bug of WebSSH 🙏

I'm adding it to the TODO list

srvh commented 4 months ago

It would be great, if you can make it in the nearest time. I bought full version (paid version) and I thought that I will use it instead of the Terminal macOS. But I can not use WebSSH because of this bug. Thanks.

isontheline commented 4 months ago

It's working on my side (using Pages instead of Word) even while copying from a web page. I need reproduce steps please.

Does other applications could be used to reproduce the bug inside WebSSH?

isontheline commented 4 months ago

Image

isontheline commented 4 months ago

@srvh Please check this setting inside your trouble connection :

Image

Adjust if needed

srvh commented 4 months ago

I install WebSSH from App Store. Version is 26.3 (1357). I send you a test screenshot. I do not know how to record video. Just made screenshots of each step and combine in one screenshot. I tried to change Carriage Return to \n and \r\n - no changes. webssh

srvh commented 4 months ago

I have found an addiction. If I use CMD + V button - then it go to one line as on screenshot higher. But if I use right mouse button in WebSSH and then choose Paste, then working well.

isontheline commented 4 months ago

On another host (Ubuntu 16) and TextEdit paste also works : paste2

That's strange.

I'm sure the bug could exists but can't reproduce it :(

srvh commented 4 months ago

I have found an addiction. If I use CMD + V button - then it go to one line as on screenshot higher. But if I use right mouse button in WebSSH and then choose Paste, then working well.

Check this, please

isontheline commented 4 months ago

I'm using CMD + V and not right button

isontheline commented 4 months ago

I'm double checking anyway

srvh commented 4 months ago

Is there any settings which can lead this situation?

isontheline commented 4 months ago

I don't think. I'm looking at https://github.com/isontheline/pro.webssh.net/issues/863 if any regression could be involved

srvh commented 4 months ago

I am using macOS 13.6.6 if it is important.

isontheline commented 4 months ago

I'm making another build with a better check of paste event. The build will be available soon.

I'll come back to you shortly

isontheline commented 4 months ago

@srvh Please try out WebSSH 26.4.1360 : https://testflight.apple.com/join/QSrBK59z

srvh commented 4 months ago

I installed this version. It is working correctly now! I can paste anything via CMD + V.

isontheline commented 4 months ago

Glad to hear that ;)

Thank you for your strong feedback!