From ce61795c388adcb668d291cb58c2694802ed880b Mon Sep 17 00:00:00 2001 From: Jeremy Danyow Date: Wed, 14 Jun 2017 14:51:36 -0700 Subject: [PATCH 1/3] normalize line endings to \r fixes #683 --- src/handlers/Clipboard.test.ts | 2 +- src/handlers/Clipboard.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/Clipboard.test.ts b/src/handlers/Clipboard.test.ts index 187d3a89..740bee3d 100644 --- a/src/handlers/Clipboard.test.ts +++ b/src/handlers/Clipboard.test.ts @@ -9,6 +9,6 @@ describe('evaluatePastedTextProcessing', function () { windowsProcessedText = Clipboard.prepareTextForTerminal(pastedText, true); assert.equal(processedText, 'foo\r\nbar\r\n'); - assert.equal(windowsProcessedText, 'foo\nbar\n'); + assert.equal(windowsProcessedText, 'foo\rbar\r'); }); }); diff --git a/src/handlers/Clipboard.ts b/src/handlers/Clipboard.ts index 493f11cd..f22523fd 100644 --- a/src/handlers/Clipboard.ts +++ b/src/handlers/Clipboard.ts @@ -22,7 +22,7 @@ declare var window: IWindow; */ export function prepareTextForTerminal(text: string, isMSWindows: boolean): string { if (isMSWindows) { - return text.replace(/\r?\n/g, '\n'); + return text.replace(/\r?\n/g, '\r'); } return text; } From a4514ee98af2b365d46ea732c00c6646b6b8ac0f Mon Sep 17 00:00:00 2001 From: Alexey Kontsevoy Date: Thu, 15 Jun 2017 18:05:07 -0400 Subject: [PATCH 2/3] Added 'Gravitational Teleport' to Real-world uses We use xterm.js in Gravitational Teleport. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 05c9651c..d631d596 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Xterm.js is used in several world-class applications to provide great terminal e - [**SourceLair**](https://www.sourcelair.com/): In-browser IDE that provides its users with fully-featured Linux terminals based on xterm.js - [**Microsoft Visual Studio Code**](http://code.visualstudio.com/): Modern, versatile and powerful open source code editor that provides an integrated terminal based on xterm.js +- [**Gravitational Teleport**](https://github.com/gravitational/teleport): Gravitational Teleport is a modern SSH server for remotely accessing clusters of Linux servers via SSH or HTTPS. - [**ttyd**](https://github.com/tsl0922/ttyd): A command-line tool for sharing terminal over the web, with fully-featured terminal emulation based on xterm.js - [**Katacoda**](https://www.katacoda.com/): Katacoda is an Interactive Learning Platform for software developers, covering the latest Cloud Native technologies. - [**Eclipse Che**](http://www.eclipse.org/che): Developer workspace server, cloud IDE, and Eclipse next-generation IDE. From a87303f3751870ac4c9422a67317c4ed3a969c12 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Fri, 16 Jun 2017 07:13:03 -0700 Subject: [PATCH 3/3] Move latest addition to real world use cases to the end Seems a little unfair to not be at the end, to date it's sorted by date added. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d631d596..f5bd1c7a 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,6 @@ Xterm.js is used in several world-class applications to provide great terminal e - [**SourceLair**](https://www.sourcelair.com/): In-browser IDE that provides its users with fully-featured Linux terminals based on xterm.js - [**Microsoft Visual Studio Code**](http://code.visualstudio.com/): Modern, versatile and powerful open source code editor that provides an integrated terminal based on xterm.js -- [**Gravitational Teleport**](https://github.com/gravitational/teleport): Gravitational Teleport is a modern SSH server for remotely accessing clusters of Linux servers via SSH or HTTPS. - [**ttyd**](https://github.com/tsl0922/ttyd): A command-line tool for sharing terminal over the web, with fully-featured terminal emulation based on xterm.js - [**Katacoda**](https://www.katacoda.com/): Katacoda is an Interactive Learning Platform for software developers, covering the latest Cloud Native technologies. - [**Eclipse Che**](http://www.eclipse.org/che): Developer workspace server, cloud IDE, and Eclipse next-generation IDE. @@ -37,6 +36,7 @@ Xterm.js is used in several world-class applications to provide great terminal e - [**RStudio**](https://www.rstudio.com/products/RStudio "RStudio"): RStudio is an integrated development environment (IDE) for R. - [**Terminal for Atom**](https://github.com/jsmecham/atom-terminal-tab): A simple terminal for the Atom text editor. - [**Eclipse Orion**](https://orionhub.org): A modern, open source software development environment that runs in the cloud. Code, deploy and run in the cloud. +- [**Gravitational Teleport**](https://github.com/gravitational/teleport): Gravitational Teleport is a modern SSH server for remotely accessing clusters of Linux servers via SSH or HTTPS. Do you use xterm.js in your application as well? Please [open a Pull Request](https://github.com/sourcelair/xterm.js/pulls) to include it here. We would love to have it in our list.