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

Copy/paste does not work in Edge #401

Closed
akalipetis opened this issue Dec 12, 2016 · 1 comment
Closed

Copy/paste does not work in Edge #401

akalipetis opened this issue Dec 12, 2016 · 1 comment
Assignees
Labels
area/clipboard browser/edge Only affects Microsoft Edge type/bug Something is misbehaving
Milestone

Comments

@akalipetis
Copy link
Contributor

When using Edge, copy and paste does not work. The text appears mangled and does not include any newlines

Details

  • Browser and browser version: Edge
  • OS version: Windows 10
  • xterm.js version: 852f587

Steps to reproduce

  1. Run the demo
  2. Open the page in Edge
  3. Run something like ls -l
  4. Try to paste the output to an editor

Typical output:
➡️ ➡️ ➡️

-rwxr-xr-x 1 www-data www-data   801 Sep 12 10:19 manage.py                                                                                                                                       -rw-r--r-- 1 www-data www-data  1262 Nov  9 13:11 nginx-profile                                                                                                                                   -rw-r--r-- 1 www-data www-data    46 Sep 12 10:19 Procfile.dev                                                                                                                                    -rw-r--r-- 1 www-data www-data    14 Sep 12 10:19 requirements.txt                                                                                                                                -rw-r--r-- 1 www-data www-data   519 Nov  9 13:19 sl-profile                                                                                                                                      drwxr-xr-x 2 www-data www-data  4096 Sep 12 10:19 YOS

Wanted output:

-rwxr-xr-x 1 www-data www-data   801 Sep 12 10:19 manage.py
-rw-r--r-- 1 www-data www-data  1262 Nov  9 13:11 nginx-profile
-rw-r--r-- 1 www-data www-data    46 Sep 12 10:19 Procfile.dev
-rw-r--r-- 1 www-data www-data    14 Sep 12 10:19 requirements.txt
-rw-r--r-- 1 www-data www-data   519 Nov  9 13:19 sl-profile
drwxr-xr-x 2 www-data www-data  4096 Sep 12 10:19 YOS

After some testing, seems like Edge does not contain any newlines in the selection:

getSelection().toString()
> -rw-r--r-- 1 www-data www-data   519 Nov  9 13:19 sl-profile                                                                                                                                      drwxr-xr-x 2 www-data www-data  4096 Sep 12 10:19 YOS
@Tyriar
Copy link
Member

Tyriar commented Jun 9, 2017

Fixed in #670

@Tyriar Tyriar closed this as completed Jun 9, 2017
@Tyriar Tyriar assigned Tyriar and unassigned parisk Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/clipboard browser/edge Only affects Microsoft Edge type/bug Something is misbehaving
Projects
None yet
Development

No branches or pull requests

3 participants