daxian-dbw / PSSandbox

A module to setup a local powershell sandbox session
3 stars 4 forks source link

faint color attribute "leaks" to the whole command line #4

Open daxian-dbw opened 3 years ago

daxian-dbw commented 3 years ago

Environment

PS version: 7.0.3
PSReadline version: 2.1.0-rc1
os: 10.0.19041.561 (WinBuild.160101.0800)
PS file version: 7.0.3.0
HostName: ConsoleHost (Windows Terminal)
BufferWidth: 110
BufferHeight: 30

Exception report

Steps to reproduce

run

Set-PSReadLineOption -Colors  @{Command = "`e[2;93m"}

and then type a command line with some parameters

Expected behavior

only the command gets the faint color

Actual behavior

the faint color attribute is never reset which results in the hole command line being faint