-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Some packages (i.e. Elgato.StreamDeck) use special UTF8 characters in the package information.
The pager has been observed to improperly handle this text and causes jittery output.
It is believed this may be due to multibyte characters and the way the pager determines how to wrap/paginate the data.
This character appears to be problematic (maybe others): ✅
These did not appear to cause problems:
🆕🛞🔊🔌
The issue likely is due the difference shown below:
'✅'.Length
1
'✅' | Format-Hex
Label: String (System.String) <68C61576>
Offset Bytes Ascii
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
------ ----------------------------------------------- -----
0000000000000000 E2 9C 85 �
Versus all other characters mentioned above are similar to the below:
'🆕'.Length
2
'🆕' | Format-Hex
Label: String (System.String) <0E48DA1F>
Offset Bytes Ascii
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
------ ----------------------------------------------- -----
0000000000000000 F0 9F 86 95 �
The interesting part is that '✅' visually requires two characters to navigate through the cursor past the character. This may suggest an issue with the Windows Terminal or PowerShell Core, rather than this pager's implementation.