Forum Discussion

caidsoffice365's avatar
caidsoffice365
Copper Contributor
Dec 18, 2023

PowerShell support on Linux

I am trying to invoke Powershell 7.4 on Linux RHEL8 through a java program and submitting commands and reading output using streams. As soon as the powershell starts , the inputstream is reading some unknown characters from the powershell output for e.g. '[?1h' and '[?1l'.

I need a way such that I don't read these characters. I tried setting the encoding in the input stream to UTF-8, but that didn't solve the problem.

 

Would really appreciate if someone could provide some inputs on this.

 

 

 

Resources