[GH-ISSUE #557] FR: How to pring to logs without colorized ANSI escape sequences #452

Closed
opened 2026-02-27 23:16:57 +03:00 by kerem · 2 comments
Owner

Originally created by @HectorB-2020 on GitHub (Mar 21, 2024).
Original GitHub issue: https://github.com/snail007/goproxy/issues/557

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
Originally created by @HectorB-2020 on GitHub (Mar 21, 2024). Original GitHub issue: https://github.com/snail007/goproxy/issues/557 ## Expected Behavior There should be a command line parameter that that prevents printing colorized ANSI escape sequences to logs ## Current Behavior <!--- Tell us what happens instead of the expected 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 <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. Start the program, watch its output ```bat proxy.exe http -t tcp -p "0.0.0.0:8088" ``` ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> 1. proxy version is : free_14.1 1. full command is : proxy.exe http -t tcp -p "0.0.0.0:8088" 1. system is : Windows 10 x86_64
kerem closed this issue 2026-02-27 23:16:57 +03:00
Author
Owner

@snail007 commented on GitHub (Mar 22, 2024):

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

<!-- gh-comment-id:2014160185 --> @snail007 commented on GitHub (Mar 22, 2024): use the latest version, color text is disabled in windows.
Author
Owner

@HectorB-2020 commented on GitHub (Mar 23, 2024):

Indeed! Thanks very much!

<!-- gh-comment-id:2016549596 --> @HectorB-2020 commented on GitHub (Mar 23, 2024): Indeed! Thanks very much!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#452
No description provided.