terminal: PowerShell via Terminal blocks capital letters

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.388]
Windows Terminal version (if applicable): 1.1.2021.0

Steps to reproduce

Try to print capital letters or Paste something like this in Powershell: echo $Env:ProgramFiles

Expected behavior

image

Actual behavior

Capital letters don’t print image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Same problem here. Appears randomly, only tab reopening fixes the issue.

Hi, i stuck again with same problem! I reopened tab and everything is fine.

I have the same issue. If I close this PS window and open it again it works fine.

I have same problem 😕 But I have this problem not only in Windows Terminal, but also in PowerShell itself. On the command line, everything works fine.

P.S. Found a fix. If you have the same problem as me, then updating PSReadLine to the latest preview version can help you. Check out this https://github.com/PowerShell/PowerShell/issues/10794 and this https://github.com/PowerShell/PSReadLine for more information.

Same issue on every windows PC which I have and had. You can’t copy-paste capital letters into PowerShell, they will be deleted. Also you can input capital letter only by using Caps Lock. Shift + key combination doesn’t work neither.

@schebotar As described in https://github.com/PowerShell/PowerShell/issues/10794, you need to update PsReadline. This will be present in all Terminal versions, because it’s a PsReadline bug.

You can find your current PsReadline version with

$(Get-Module PSReadLine).Version

I checked out all standard russian cyrillic layout. I can’t type capitals which I kept lowercase on screenshot below image

Will capital letters be printed if you try using <kbd>tab</kbd> autocomplete?

Does setting "experimental.input.forceVT": true, in your settings fix this?

Can you type capital letters in other shells other than powershell?

Which powershell version? PSReadline version?