Skip to content

Make the output of script block handler formatted and rendered to the console? #1302

Open
@gogsbread

Description

@gogsbread

When using programs(less, fzf etc.), that emit to alternate buffers, inside ScriptBlock, there is no display of the program buffer.
For Eg:

Set-PSReadLineKeyHandler -Chord Ctrl+o -ScriptBlock { less foo.txt }
Set-PSReadLineKeyHandler -Chord Ctrl+o -ScriptBlock { find . | fzf }

Show no output

Couple of questions
a) Why is that?
b) What should I do if I need to display them? (Start separate process and redirect stdout from that process?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionFor non-bug questions or discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions