posh-git icon indicating copy to clipboard operation
posh-git copied to clipboard

Request: Add -NoANSI option to all Write-commands

Open DennisL68 opened this issue 1 year ago • 0 comments

System Details

  • posh-git version/path: 1.1.0 C:\Program Files\WindowsPowerShell\Modules\posh-git\1.1.0
  • PowerShell version: 7.2.9
  • git version 2.39.2.windows.1
  • OS: Microsoft Windows NT 10.0.19045.0

Issue Description

All output from the Write-commands contains colored ANSI-output. If I need to apply logic comparison or pipe the text to a command that can't handle ANSI, the result will be messed up because of the included ANSI escape sequences.

If adding a switch like -NoANSI, the usage of the Write commands should provide plain text output. It would be that more useful.

DennisL68 avatar Apr 04 '23 12:04 DennisL68