mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-30 22:53:31 +03:00
made progress detection optional - fixes #3472
This commit is contained in:
parent
864932d663
commit
e42bd11725
@ -330,7 +330,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
|||||||
}
|
}
|
||||||
|
|
||||||
const percentageMatch = /(^|[^\d])(\d+(\.\d+)?)%([^\d]|$)/.exec(data)
|
const percentageMatch = /(^|[^\d])(\d+(\.\d+)?)%([^\d]|$)/.exec(data)
|
||||||
if (!this.alternateScreenActive && percentageMatch) {
|
if (!this.alternateScreenActive && percentageMatch && this.config.store.terminal.detectProgress) {
|
||||||
const percentage = percentageMatch[3] ? parseFloat(percentageMatch[2]) : parseInt(percentageMatch[2])
|
const percentage = percentageMatch[3] ? parseFloat(percentageMatch[2]) : parseInt(percentageMatch[2])
|
||||||
if (percentage > 0 && percentage <= 100) {
|
if (percentage > 0 && percentage <= 100) {
|
||||||
this.setProgress(percentage)
|
this.setProgress(percentage)
|
||||||
|
@ -74,6 +74,7 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
wholeWord: false,
|
wholeWord: false,
|
||||||
caseSensitive: false,
|
caseSensitive: false,
|
||||||
},
|
},
|
||||||
|
detectProgress: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user