Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell quotes are not visible on the screen

In powershell under W10, when I type cd "xxxx", the "xxxx" are not visible on the screen (the cursor moves but the characters print in the same color as the background). When I type the first double quote then the > at the beginning of the line turns red and when I type final quotes it turns back to white and the rest of the line is visible.

For example if I type:

>cd "Desktop" Hello

I get:

>cd           Hello

My powershell used to work well until yesterday... Do you know how to correct this bug?

like image 739
VideoPac Avatar asked Oct 30 '22 14:10

VideoPac


1 Answers

Edit

I found out why this happens, it has to do with the palette in the Colors tab.

If you edit the values in the palette when choosing your text/background colors (which I did by accident), you can change the color of quoted strings.

The 4th value is the one related to quoted strings:

enter image description here

Hope it helps!

Old solution

The command below suggested by TravisEz13 works.

remove-module psreadline

But it also removes the nice syntax highlight. It's local solution, you'll have to do it every time you open a new PowerShell session.

like image 180
Ricardo Oda Avatar answered Nov 15 '22 02:11

Ricardo Oda