Gottox / terminal.js

Javascript terminal emulator library that aims to be xterm compliant and is supposed to work in browsers and node.js.
http://terminal.js.org
MIT License
592 stars 69 forks source link

Copy & Paste #106

Closed vladiacob closed 8 years ago

vladiacob commented 8 years ago

Can you explain me if exists any simple solution to make ctl+c & ctl+v or cmd+c & cmd+v on macOS to work ? Thanks.

wmaciel commented 8 years ago

I would say allowing these shortcuts on a terminal are a bit tricky. Ctrl C, for example, is the default shortcut to interrupting the foreground process.

I am working on trying to allow copying and pasting trough right-clicks of the mouse though.

Gottox commented 8 years ago

there are APIs for that. http://codebits.glennjones.net/editing/getclipboarddata.htm so yes, it's possible.

Gottox commented 8 years ago

Support for copy and paste is in terminal.js. Please check if it breaks anything else as I changed some of the focus handling.