mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-06 00:21:52 +00:00
typing cleanup
This commit is contained in:
@@ -49,7 +49,7 @@ export class TerminalStreamProcessor {
|
||||
output: this.inputReadlineOutStream,
|
||||
terminal: true,
|
||||
prompt: this.options.inputMode === 'readline-hex' ? 'hex> ' : '> ',
|
||||
} as any)
|
||||
})
|
||||
this.inputReadline.on('line', line => {
|
||||
this.onTerminalInput(Buffer.from(line + '\n'))
|
||||
this.resetInputPrompt()
|
||||
|
@@ -56,7 +56,7 @@ export class XTermFrontend extends Frontend {
|
||||
allowTransparency: true,
|
||||
windowsMode: process.platform === 'win32',
|
||||
})
|
||||
this.xtermCore = (this.xterm as any)._core
|
||||
this.xtermCore = this.xterm['_core']
|
||||
|
||||
this.xterm.onBinary(data => {
|
||||
this.input.next(Buffer.from(data, 'binary'))
|
||||
@@ -365,7 +365,11 @@ export class XTermFrontend extends Frontend {
|
||||
private getLineAsHTML (y: number, start: number, end: number): string {
|
||||
let html = '<div>'
|
||||
let lastStyle: string|null = null
|
||||
const line = (this.xterm.buffer.active.getLine(y) as any)._line
|
||||
const outerLine = this.xterm.buffer.active.getLine(y)
|
||||
if (!outerLine) {
|
||||
return ''
|
||||
}
|
||||
const line = outerLine['_line']
|
||||
const cell = new CellData()
|
||||
for (let i = start; i < end; i++) {
|
||||
line.loadCell(i, cell)
|
||||
|
@@ -64,7 +64,7 @@ import { TerminalCLIHandler } from './cli'
|
||||
AppearanceSettingsTabComponent,
|
||||
ColorSchemeSettingsTabComponent,
|
||||
TerminalSettingsTabComponent,
|
||||
] as any[],
|
||||
],
|
||||
declarations: [
|
||||
ColorPickerComponent,
|
||||
ColorSchemePreviewComponent,
|
||||
@@ -74,7 +74,7 @@ import { TerminalCLIHandler } from './cli'
|
||||
SearchPanelComponent,
|
||||
StreamProcessingSettingsComponent,
|
||||
LoginScriptsSettingsComponent,
|
||||
] as any[],
|
||||
],
|
||||
exports: [
|
||||
ColorPickerComponent,
|
||||
SearchPanelComponent,
|
||||
|
Reference in New Issue
Block a user