From 72a8546d7448db66375197c177a4610a5534b42c Mon Sep 17 00:00:00 2001 From: Nathan Byrd Date: Fri, 22 Sep 2023 01:18:38 +0000 Subject: [PATCH] Removed special handling of backspace and form feed --- core/ansi_escape_parser.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/core/ansi_escape_parser.js b/core/ansi_escape_parser.js index 44eccfbd..7b6914ea 100644 --- a/core/ansi_escape_parser.js +++ b/core/ansi_escape_parser.js @@ -12,12 +12,9 @@ const _ = require('lodash'); exports.ANSIEscapeParser = ANSIEscapeParser; -const BS = 0x08; const TAB = 0x09; const CR = 0x0d; const LF = 0x0a; -const FF = 0x0c; -const BKSP = 0x08; function ANSIEscapeParser(options) { var self = this; @@ -114,14 +111,6 @@ function ANSIEscapeParser(options) { charCode = text.charCodeAt(pos) & 0xff; // 8bit clean switch (charCode) { - case BS: - self.emit('literal', text.slice(start, pos + 1)); - start = pos + 1; - - self.column = Math.max(1, self.column - 1); - - self.positionUpdated(); - break; case TAB: self.emit('literal', text.slice(start, pos + 1)); start = pos + 1; @@ -130,20 +119,6 @@ function ANSIEscapeParser(options) { self.positionUpdated(); break; - case BKSP: - self.emit('literal', text.slice(start, pos + 1)); - start = pos + 1; - - self.column = Math.max(1, self.column - 1); - - self.positionUpdated(); - break; - case FF: - self.emit('literal', text.slice(start, pos + 1)); - start = pos + 1; - - self.clearScreen(); - break; case CR: self.emit('literal', text.slice(start, pos + 1)); start = pos + 1;