Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Support copy/paste #17

Closed
fread2281 opened this Issue Mar 20, 2012 · 12 comments

Comments

Projects
None yet
9 participants

Preferably through the browser

Owner

chjj commented Mar 21, 2012

Copying should be possible on every OS/browser (select text + right click). Pasting works fine with X11 right now. I'm looking for a cross-OS way of doing this. I'm not sure how OSX or Windows will handle it. We'd probably have to resort to hackier/uglier measures to make pasting work with them. With X11 it is easy: middle-click and listen for the paste event. To make things more portable, I'm thinking of a workaround with a textarea since I'm guessing you can't paste "into" a div in any browser with the right-click menu.

We also need copy/paste support for keyboard shortcuts(not in OSX right now).

Owner

chjj commented Mar 21, 2012

I'm not very familiar with macs or mac keyboards. As far as shortcuts go, we can't do ^C or ^V for anything, obviously they need to be passed to the terminal. There's no way to rebind copy/paste functionality to a different key combination inside a browser. The best you're going to get is select text + right-click + copy and right click + paste. You can already copy, we just need a workaround for pasting. Pasting currently works on any system using X11 (middle-click).

Owner

chjj commented Apr 18, 2012

Right-click + paste should work in chrome now.

@chjj chjj closed this Apr 18, 2012

Copy paste doesn't work at all, tried in OSX && Windows, you just cannot paste (either using right click, paste or by using a shortcut: ctrl+v || shift + insert).

Is there any way I can paste? This is the only thing I really miss from a terminal.

thanks

Right-click + paste not working for me in Chrome on Windows. There's just no paste option available.

Owner

chjj commented Apr 9, 2014

Hmm, seems to work on Linux. I would encourage keyboard-based copying/pasting. Ctrl+A-Ctrl+V for pasting and Ctrl+A-Ctrl-C for copying should work on windows and linux. There's also more ways to handle this explained in the term.js readme: https://github.com/chjj/term.js#user-content-tmux-like

I have the same context menu issue in Windows Chrome.
screenKeys works for me though.

It would be nice to be able to Shift+Insert instead of Ctrl+A - Ctrl+V

On 9 April 2014 06:04, Christopher Jeffrey notifications@github.com wrote:

Hmm, seems to work on Linux. I would encourage keyboard-based
copying/pasting. Ctrl+A-Ctrl+V for pasting and Ctrl+A-Ctrl-C for copying
should work on windows and linux. There's also more ways to handle this
explained in the term.js readme:
https://github.com/chjj/term.js#user-content-tmux-like


Reply to this email directly or view it on GitHubhttps://github.com/chjj/tty.js/issues/17#issuecomment-39928968
.

Best regards,
Adam Jimenez

ShiftCreate Limited

k-bx commented Nov 19, 2014

Firefox on MacOS -- paste doesn't work

anthony-o commented Jun 6, 2016 edited

Still an issue, but thanks to https://gist.github.com/risacher/7837761 I managed to workaround this on Firefox on Windows.

jmls commented Jun 11, 2016

I can't get this to work on chrome-51

is there a solution that works like cloud9 copy/paste (ctrl-c / ctrl-v)

@chjj Hello I am using your term. Js plug-in terminal, I'd like to start out as a cursor, click go terminal cursor. How to deal with this?

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