mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-05 06:24:56 +00:00
es2021 compilation
This commit is contained in:
@@ -414,9 +414,9 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
||||
data = `\x1b[200~${data}\x1b[201~`
|
||||
}
|
||||
if (this.hostApp.platform === Platform.Windows) {
|
||||
data = data.replace(/\r\n/g, '\r')
|
||||
data = data.replaceAll('\r\n', '\r')
|
||||
} else {
|
||||
data = data.replace(/\n/g, '\r')
|
||||
data = data.replaceAll('\n', '\r')
|
||||
}
|
||||
|
||||
if (!this.alternateScreenActive) {
|
||||
|
@@ -77,7 +77,7 @@ export class TerminalStreamProcessor {
|
||||
gutter: 4,
|
||||
divide: colors.gray(' | '),
|
||||
emptyHuman: colors.gray('╳'),
|
||||
}).replace(/\n/g, '\r\n')),
|
||||
}).replaceAll('\n', '\r\n')),
|
||||
Buffer.from('\r\n\n'),
|
||||
]))
|
||||
} else {
|
||||
|
@@ -23,7 +23,7 @@ export class PathDropDecorator extends TerminalDecorator {
|
||||
if (path.includes(' ')) {
|
||||
path = `"${path}"`
|
||||
}
|
||||
path = path.replace(/\\/g, '\\\\')
|
||||
path = path.replaceAll('\\', '\\\\')
|
||||
terminal.sendInput(path + ' ')
|
||||
}
|
||||
}
|
||||
|
@@ -83,7 +83,7 @@ import { TerminalCLIHandler } from './cli'
|
||||
],
|
||||
})
|
||||
export default class TerminalModule { // eslint-disable-line @typescript-eslint/no-extraneous-class
|
||||
private constructor (
|
||||
constructor (
|
||||
hotkeys: HotkeysService,
|
||||
) {
|
||||
const events = [
|
||||
|
Reference in New Issue
Block a user