mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
fix: 非终端输出时禁用进度条,防止ANSI控制码覆盖扫描结果
This commit is contained in:
@@ -107,7 +107,7 @@ func GetProgressManager() *ProgressManager {
|
||||
// InitProgress 初始化进度条
|
||||
func (pm *ProgressManager) InitProgress(total int64, description string) {
|
||||
cfg := GetGlobalConfig()
|
||||
if cfg.Output.DisableProgress || cfg.Output.Silent {
|
||||
if cfg.Output.DisableProgress || cfg.Output.Silent || cfg.Output.NoColor {
|
||||
pm.enabled = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user