arcanist with PHP in GitBash tab shows extra characters but not other tabs #5724

Open
opened 2026-01-31 00:20:08 +00:00 by claunia · 0 comments
Owner

Originally created by @briannipper on GitHub (Dec 29, 2019).

  • Laptop Manufacture: ASUS
  • Laptop Model: K501UW
  • CPU Arch: x64
  • RAM: 16 GB
  • Disk: SSD 500 GB (Primary Drive for OS and Apps)
  • OS: Windows
  • OS Version: Microsoft Windows 10.0.18362
  • Windows Terminal Info: Windows Terminal (Preview)
  • Windows Terminal Version: Version: 0.7.3451.0

The profile for the tabs I'm including in this bug report are:

  • GitBash for WIndows
  • PowerShell Core

In both of these terminals, as shown in the screen shots I've used an app that is part of my path namely arcanist

As you can see, in the GitBash tab when I've run the command to "arc diff" the results include extra characters such as <-[44m or <-[1m

I've looked into the code of the arcanist CLI and it's using a version of PHP that runs on windows.

In futher testing, the GitBash for Windows running OUTSIDE of the windows terminal does NOT show these extra characters.

Not all lines from the arc commands include these lines. I've modified the source locally and it seems to be related to how PHP is interacting with the terminal output by attempting to create specific text to indicate how the text should be formatted in columns or with types of text.

The same command in the PS Core tab does NOT show these extra characters.

Any assistance with this would be greatly appreciated.

BashGit_Windows_Terminal_Extra_Text
removed any sensitive info

PSCore_Windows_Terminal_NO_Extra_Text
removed any sensitive info

Originally created by @briannipper on GitHub (Dec 29, 2019). - Laptop Manufacture: **ASUS** - Laptop Model: **K501UW** - CPU Arch: **x64** - RAM: **16 GB** - Disk: **SSD 500 GB (Primary Drive for OS and Apps)** - OS: **Windows** - OS Version: **Microsoft Windows 10.0.18362** - Windows Terminal Info: **Windows Terminal (Preview)** - Windows Terminal Version: **Version: 0.7.3451.0** The profile for the tabs I'm including in this bug report are: - GitBash for WIndows - PowerShell Core In both of these terminals, as shown in the screen shots I've used an app that is part of my path namely [arcanist](https://github.com/phacility/arcanist) As you can see, in the GitBash tab when I've run the command to "arc diff" the results include extra characters such as <-[44m or <-[1m I've looked into the code of the arcanist CLI and it's using a version of PHP that runs on windows. In futher testing, the GitBash for Windows running OUTSIDE of the windows terminal does NOT show these extra characters. Not all lines from the arc commands include these lines. I've modified the source locally and it seems to be related to how PHP is interacting with the terminal output by attempting to create specific text to indicate how the text should be formatted in columns or with types of text. The same command in the PS Core tab does NOT show these extra characters. Any assistance with this would be greatly appreciated. ![BashGit_Windows_Terminal_Extra_Text](https://user-images.githubusercontent.com/361720/71563235-1ff82200-2a5a-11ea-8f66-8aa5e3bb0b82.jpg) __removed any sensitive info__ ![PSCore_Windows_Terminal_NO_Extra_Text](https://user-images.githubusercontent.com/361720/71563236-1ff82200-2a5a-11ea-8d2c-b467bd7c3f27.jpg) __removed any sensitive info__
claunia added the Issue-BugPriority-3Area-VTResolution-ExternalProduct-Terminal labels 2026-01-31 00:20:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5724