snail007 / goproxy

🔥 Proxy is a high performance HTTP(S) proxies, SOCKS5 proxies,WEBSOCKET, TCP, UDP proxy server implemented by golang. Now, it supports chain-style proxies,nat forwarding in different lan,TCP/UDP port forwarding, SSH forwarding.Proxy是golang实现的高性能http,https,websocket,tcp,socks5代理服务器,支持内网穿透,链式代理,通讯加密,智能HTTP,SOCKS5代理,黑白名单,限速,限流量,限连接数,跨平台,KCP支持,认证API。
https://snail007.host900.com/goproxy/manual/zh/
GNU General Public License v3.0
15.87k stars 3.01k forks source link

FR: How to pring to logs without colorized ANSI escape sequences #557

Closed HectorB-2020 closed 8 months ago

HectorB-2020 commented 8 months ago

Expected Behavior

There should be a command line parameter that that prevents printing colorized ANSI escape sequences to logs

Current Behavior

Currently the program sends ANSI escape sequences to logs even if Windows terminal does not support this

Possible Solution

A CLI parameter like proxy.exe --logs-no-color.

Steps to Reproduce

  1. Start the program, watch its output
    proxy.exe http -t tcp -p "0.0.0.0:8088"

Context (Environment)

  1. proxy version is : free_14.1
  2. full command is : proxy.exe http -t tcp -p "0.0.0.0:8088"
  3. system is : Windows 10 x86_64
snail007 commented 8 months ago

use the latest version, color text is disabled in windows.

HectorB-2020 commented 8 months ago

Indeed! Thanks very much!