fristhon / telminal

A Terminal in Telegram!
MIT License
50 stars 19 forks source link

pwsh does not work properly. #7

Open Frederisk opened 1 year ago

Frederisk commented 1 year ago

I installed the latest powershell 7.3.x and tried using it in telminal, but it keeps printing something weird and also doesn't interact properly, any solutions here?

step:

Stop.Ix��p������������
>> 0��perShell_profile.unml console is readinStop.InformatipStop:PowershellinStop.Ix��p������ux3���perShell_profile.unml console is readinStop.InformatipStop:PowershellinStop.Ix��p�������x3H�|erShell_profile.unml console is readinStop.InformatipStop:PowershellinStop.Ix��p�����b"k��nv3�nv3p��perShell_profile.unml console is readinStop.InformatipStop:PowershellinStop.Ix��p�����h�x3��������-V��perShell_profile.unml console is readinStop.InformatipStop:PowershellinStop.Ix��p�������a���perShell_profile.unml console is readinStop.InformatipStop:PowershellinStop.Ix��p�������perShell_profile.unml console is readinStop.InformatipStop:PowershellinStop.Ix��p������U�����-V��M������perShell_profile.unml console is readinStop.InformatipStop:PowershellinStop.Ix��p�����Ds��>|/��perShell_profile.unml console is readinStop.InformatipStop:PowershellinStop.Ix��p�����nformatipStop:PowershellinStop.Ix��p�������>�|�o��^CPS /home/azureuser> 
                                ^CPS /home/azureuser>

image

fristhon commented 1 year ago

It's so weird! Seems it's a power shell core bug and "pwsh" needs a real "tty". so unfortunately I haven't a solution for you right now https://github.com/PowerShell/PowerShell/issues/13023#issuecomment-677942379

Also, a few clues here: https://github.com/PowerShell/PowerShell/issues/14932 https://github.com/PowerShell/PSReadLine/issues/1376

By the way, I was able to interact with "pwsh" via -NonInteractive parameter from telminal, but unreadable characters still stay.