Skip to content

Keys being relayed/escaped improperly to the shell #186

@brian6932

Description

@brian6932

Currently when I send keys through PowerSession recordings, these returned as text instead of escaped:

Key Shell
F1 OP
F2 OQ
F3 OR
F4 OS
F5 [15~
F6 [17~
F7 [18~
F8 [19~
F9 [20~
F10 [21~
F11 [23~
F12 [24~
[A
[B
[D
[C
Home [H
End [F

It seems like PgUp & PgDn don't get relayed properly to TUI programs for me (even when running them as a child of the current shell), but works fine in my shell.

❯ powersession --version
PowerSession 0.1.11

❯ cargo install --list | rg powersession -i
PowerSession v0.1.11 (https://github.com/Watfaq/PowerSession-rs#75495685):
    PowerSession.exe$_=Get-ItemProperty 'HKLM:/SOFTWARE/Microsoft/Windows NT/CurrentVersion';$_.CurrentMajorVersionNumber.ToString()+'.'+$_.CurrentMinorVersionNumber.ToString()+'.'+$_.CurrentBuild+'.'+$_.UBR
10.0.19044.5011

❯ pwsh --version
PowerShell 7.5.0-preview.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions