From 30f221d05e6e46d49f563fd96c9ca332f8d505fa Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 1 Apr 2018 20:05:30 +0200 Subject: [PATCH] convert CRLF to LF on paste (fixes #293) --- terminus-terminal/src/components/terminalTab.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/terminus-terminal/src/components/terminalTab.component.ts b/terminus-terminal/src/components/terminalTab.component.ts index ed57fed4..647d1cd8 100644 --- a/terminus-terminal/src/components/terminalTab.component.ts +++ b/terminus-terminal/src/components/terminalTab.component.ts @@ -348,6 +348,7 @@ export class TerminalTabComponent extends BaseTabComponent { if (this.hterm.options_.bracketedPaste) { data = '\x1b[200~' + data + '\x1b[201~' } + data = data.replace(/\r\n/g, '\n') this.sendInput(data) }