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

feature request: copy and paste #32

Closed
hugoeustaquio opened this issue Aug 20, 2015 · 15 comments
Closed

feature request: copy and paste #32

hugoeustaquio opened this issue Aug 20, 2015 · 15 comments

Comments

@hugoeustaquio
Copy link

Copy and paste wold be an awesome improvement!

Thank you!

@yudai
Copy link
Owner

yudai commented Aug 20, 2015

Which platform are you using?

If it's OSX and chrome;
To copy, you can just select text and it'll send to your clipboard automatically.
And you can use Command+V to paste

@hugoeustaquio
Copy link
Author

Sorry, I'm using slackware linux 64 bits with firefox.
I thought it was a missing feature, but I tested now on google chrome and it seems to work. It's not a feature request, just a firefox bug. And it's just "paste" that doesn't work, not "copy".

@hugoeustaquio
Copy link
Author

I tried "shift+insert", "middle-click" and "ctrl+v". Control+v makes gotty print "^M", as follows:

bash-4.3$ ^M
bash: $'\r': command not found

My system use a UTF-8 encode, maybe it's something related. I will start to use some WebKit based browser, thanks!

@Arno0x
Copy link

Arno0x commented Sep 1, 2015

I'm experiencing the same issue under Firefox 39.0.3 on windows and OSX. It's kindof weird it doesn't work with GoTTY, where it works with GateOne (which uses pretty much the same principle).

@yudai
Copy link
Owner

yudai commented Sep 1, 2015

What about using these options?
https://github.com/yudai/gotty/blob/master/.gotty#L66-L67

@jungle-boogie
Copy link

Hi @yudai,

The problem with ctrl+c is that if you have -w enabled, this will close the connection.

test it out: gotty -w top

@yudai yudai reopened this Sep 1, 2015
@yudai
Copy link
Owner

yudai commented Sep 2, 2015

@jungle-boogie As for copy on Chrome, it seems like just selecting text by your mouse is the best way to copy.
However, it looks firefox has some issue around copy&paste. Let me look into it.

@jungle-boogie
Copy link

Hi @yudai,

Yes, your observations with firefox are correct regarding copying text; however, ctrl-c with the -w will still close the connection in Chrome, just as I would expect.

@wapsi
Copy link

wapsi commented Sep 7, 2015

Just tested in Firefox and looks like ctrl+v is working just fine but ctrl+c isn't. The "text copied icon" appears on the screen but it's not really copying (old data remains in clipboard). Tested on CentOS 7.1, Firefox ESR: firefox-38.2.1-1.el7.centos.x86_64. Both paste & copy is working in Chrome though.

I've configured following lines in config file:
ctrl_c_copy = true
ctrl_v_paste = true
and Gotty has been executed using -w argument as well.

@tjdett
Copy link

tjdett commented Jan 14, 2016

Seeing the same problem with Firefox 43 on Fedora Linux and Windows 7. Specifically:

  • highlight then copy with ctrl + shift + c does copy to clipboard
  • ctrl + shift + v doesn't paste

Tested with the defaults (ctrl_c_copy = false & ctrl_v_paste = false) and after verifying the functionality works in Chrome 47.

@brmzkw
Copy link

brmzkw commented Apr 12, 2016

Is someone working on a fix?

@yudai
Copy link
Owner

yudai commented Apr 13, 2016

I'm not working on this issue right now.

PR is welcome.

@azlux
Copy link

azlux commented Jan 27, 2017

Hi, if you use this part of the conf, you will be able to use the default clipboard manager of firefox. In this case, you need to press Ctrl+C and Ctrl+V like normal text , nothing will be catch by hterm.

copy_on_select = false
use_default_window_copy = true
clear_selection_after_copy = false
ctrl_c_copy = true
ctrl_v_paste = true

@yudai
Copy link
Owner

yudai commented Aug 22, 2017

Now the terminal library is default to xterm, which should support copy&paste on Firefox.
Please reopen if the issue still exist.

@yudai yudai closed this as completed Aug 22, 2017
@Piping
Copy link

Piping commented Jul 5, 2018

@yudai I try to copy text to system clipboard when I am under a tmux session.

The copy does not work in both chrome and Firefox. Any help?

In tmux, I have set set -g clipboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants