From e63831febcfcda400243f1e1946dba47af73dc87 Mon Sep 17 00:00:00 2001 From: Felipe Gasper Date: Fri, 23 Mar 2018 19:14:04 -0400 Subject: [PATCH] Force LTR for the terminal element Issue #1330: This prevents RTL layouts from mishandlin the intended layout of the terminal container and children. --- src/Terminal.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Terminal.ts b/src/Terminal.ts index 924260ca..b7906ecc 100644 --- a/src/Terminal.ts +++ b/src/Terminal.ts @@ -622,6 +622,7 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT // Create main element container this.element = this._document.createElement('div'); + this.element.dir = "ltr"; //xterm.css assumes LTR this.element.classList.add('terminal'); this.element.classList.add('xterm'); this.element.setAttribute('tabindex', '0');