Skip to content
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

tmux how to upload files,like bash rzsz this #1439

Closed
feiyx opened this issue Aug 17, 2018 · 16 comments
Closed

tmux how to upload files,like bash rzsz this #1439

feiyx opened this issue Aug 17, 2018 · 16 comments

Comments

@feiyx
Copy link

feiyx commented Aug 17, 2018

tmux how to upload files,like bash rzsz this

@feiyx
Copy link
Author

feiyx commented Aug 17, 2018

The first problem has been solved ,The solution is to copy by holding shift,
The problem of uploading files has not been solved.

@nicm
Copy link
Member

nicm commented Aug 17, 2018

tmux has nothing to do with uploading files.

@feiyx feiyx changed the title tmux 怎么进行用鼠标选择复制和tmux 怎么上传文件? tmux how to upload files,like bash rzsz this Aug 17, 2018
@feiyx
Copy link
Author

feiyx commented Aug 17, 2018

so ,What if you need to upload files?@nicm

@nicm
Copy link
Member

nicm commented Aug 17, 2018

scp? rsync? FTP? How would I know?

@nicm
Copy link
Member

nicm commented Aug 17, 2018

Oh you want to use xmodem or zmodem. It won't work in tmux, you need to use it outside tmux.

@feiyx
Copy link
Author

feiyx commented Aug 17, 2018

yes,We hope to support the function of xmodems or zmodems with tmux. of course,I don't know if that's possible

@nicm
Copy link
Member

nicm commented Aug 17, 2018 via email

@feiyx
Copy link
Author

feiyx commented Aug 17, 2018

why?,can you give me a doc on the principle of Tmux,thanks

@nicm
Copy link
Member

nicm commented Aug 17, 2018

It would require a lot of faff to make it work, and hardly anyone uses it anymore.

@krader1961
Copy link

@feiyx It doesn't work because the necessary code for tmux to support the protocol transparently hasn't been written. I've been using computers since 1977. I can't even remember the last time I used zmodem it was so long ago. Even if someone was willing to write the necessary code it doesn't make sense to incur the cost to add it to tmux now.

@nicm It may be worth putting a couple of sentences in the FAQ since this is the second time I can recall seeing this feature requested (see #906).

@nicm
Copy link
Member

nicm commented Aug 17, 2018

I have added an FAQ entry.

@nicm nicm closed this as completed Aug 17, 2018
@therevoman
Copy link

Ignorance is not a reason to dismiss a feature request. There are lots of use cases for the transfer protocol...
Iterm on Macs support it.
Various shells on Windows support it.
It's not just about transferring files, it's about retreiving or updating text files quickly...

@therevoman
Copy link

My take on this feature request is not to plumb tmux with the protocols, but to code tmux so it gets out of the way of the protocol. RHEL, fedora and other distributions already provide the protocol via the lrzsz package, and a user initiates the transfers via the commands sz and rz.

Tmux gets in the way of the transfer initiation bytes written to the terminal or the following stream of bytes.

@krader1961
Copy link

@therevoman, You wrote:

It's not just about transferring files, it's about retreiving or updating text files quickly...

I can't grok your comment since retrieving/updating files in that fashion is equivalent to "transferring" files between two systems. Also, iTerm does not support zmodem directly. It simply makes it possible via its "trigger" facility that allows arbitrary actions when a specific sequence of bytes is seen.

Adding something like screen's zmodem [pass | off] command is not unreasonable. Although I would name it something else to make it clear it is simply a means for telling tmux to not interpret any subsequent bytes; i.e., be transparent to any bytes sent or received. Perhaps passthru [on | off]. Feel free to create a pull-request -- assuming @nicm isn't opposed to adding a user controlled passthru mode. In any case adding the actual file transfer protocol to tmux is still a bad idea.

@wangshankun
Copy link

tmux how to upload files,like bash rzsz this

哥们儿,好多年就用上tmux,因为lrzsz放弃,至今没再用过tmux

@lock
Copy link

lock bot commented Mar 11, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants