You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS version: 7.2.0-preview.3
PSReadline version: 2.2.0-beta2
os: Darwin MININT-E57SBHC.europe.corp.microsoft.com 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
PS file version: 7.2.0.0
HostName: ConsoleHost
BufferWidth: 165
BufferHeight: 42
On systems where $Host.UI.SupportsVirtualTerminal is false (and not Windows), PSReadLine needs to disable some feature that rely on VT as the console output makes it unreadable.
Also, output should go through the Host and not using Console directly.
On systems where $Host.UI.SupportsVirtualTerminal is false (and not Windows)
Currently PSReadLine assumes VT is always supported when running on Linux and macOS. See the code snippet below. To allow PSReadLine to work on Linux without VT, an IConsole implementation like LegacyWin32Console would be needed.
Also, output should go through the Host and not using Console directly.
PSReadLine uses System.Console directly all over the places, and it would be hard to change that. Why do you think the output should always go through the Host?
Activity
daxian-dbw commentedon Mar 10, 2021
Currently PSReadLine assumes VT is always supported when running on Linux and macOS. See the code snippet below. To allow PSReadLine to work on Linux without VT, an
IConsoleimplementation likeLegacyWin32Consolewould be needed.PSReadLine/PSReadLine/ReadLine.cs
Lines 640 to 642 in f8fb650
PSReadLine uses
System.Consoledirectly all over the places, and it would be hard to change that. Why do you think the output should always go through theHost?DHowett commentedon Mar 11, 2021
PSReadline should probably not be loaded if the user’s requested a dumb terminal :)