mirror of
https://github.com/Eugeny/tabby
synced 2024-12-13 14:52:45 +00:00
emergency brake for spinner output
This commit is contained in:
parent
4f244a126c
commit
5b0a7b39b7
1 changed files with 7 additions and 1 deletions
|
@ -130,7 +130,13 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
|||
private sessionSupportsBracketedPaste = false
|
||||
private spinner = new Spinner({
|
||||
stream: {
|
||||
write: x => this.writeRaw(x),
|
||||
write: x => {
|
||||
try {
|
||||
this.writeRaw(x)
|
||||
} catch {
|
||||
this.spinner.stop()
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
private spinnerActive = false
|
||||
|
|
Loading…
Reference in a new issue