mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-25 05:50:01 +00:00
Update streamProcessing.ts
This commit is contained in:
parent
5ef36896c5
commit
510edaabb5
@ -20,7 +20,7 @@ export interface StreamProcessingOptions {
|
|||||||
|
|
||||||
export class TerminalStreamProcessor extends SessionMiddleware {
|
export class TerminalStreamProcessor extends SessionMiddleware {
|
||||||
forceEcho = false
|
forceEcho = false
|
||||||
private inputReadline: ReadLine
|
private inputReadline: ReadLine|null = null
|
||||||
private inputPromptVisible = false
|
private inputPromptVisible = false
|
||||||
private inputReadlineInStream: Readable & Writable
|
private inputReadlineInStream: Readable & Writable
|
||||||
private inputReadlineOutStream: Readable & Writable
|
private inputReadlineOutStream: Readable & Writable
|
||||||
@ -99,7 +99,7 @@ export class TerminalStreamProcessor extends SessionMiddleware {
|
|||||||
}
|
}
|
||||||
|
|
||||||
close (): void {
|
close (): void {
|
||||||
this.inputReadline.close()
|
this.inputReadline?.close()
|
||||||
super.close()
|
super.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ export class TerminalStreamProcessor extends SessionMiddleware {
|
|||||||
|
|
||||||
private resetInputPrompt () {
|
private resetInputPrompt () {
|
||||||
this.outputToTerminal.next(Buffer.from('\r\n'))
|
this.outputToTerminal.next(Buffer.from('\r\n'))
|
||||||
this.inputReadline.prompt(true)
|
this.inputReadline?.prompt(true)
|
||||||
this.inputPromptVisible = true
|
this.inputPromptVisible = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user