Giter Site home page Giter Site logo

Comments (15)

brmzkw avatar brmzkw commented on April 30, 2024 2

Is someone working on a fix?

from gotty.

azlux avatar azlux commented on April 30, 2024 2

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

from gotty.

tjdett avatar tjdett commented on April 30, 2024 1

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.

from gotty.

yudai avatar yudai commented on April 30, 2024

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

from gotty.

hugoeustaquio avatar hugoeustaquio commented on April 30, 2024

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".

from gotty.

hugoeustaquio avatar hugoeustaquio commented on April 30, 2024

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!

from gotty.

Arno0x avatar Arno0x commented on April 30, 2024

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).

from gotty.

yudai avatar yudai commented on April 30, 2024

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

from gotty.

jungle-boogie avatar jungle-boogie commented on April 30, 2024

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

from gotty.

yudai avatar yudai commented on April 30, 2024

@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.

from gotty.

jungle-boogie avatar jungle-boogie commented on April 30, 2024

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.

from gotty.

wapsi avatar wapsi commented on April 30, 2024

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.

from gotty.

yudai avatar yudai commented on April 30, 2024

I'm not working on this issue right now.

PR is welcome.

from gotty.

yudai avatar yudai commented on April 30, 2024

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

from gotty.

Piping avatar Piping commented on April 30, 2024

@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

from gotty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.