Skip to content

fish_postexec and fish_prompt don't emit when command is aborted (e.g. with ctrl-c) #2356

@faho

Description

@faho

As mentioned in #2139, try the following:

function postexec --on-event fish_postexec
    echo postexec
end
function prompt --on-event fish_prompt
    echo prompt
end
sleep 5 # Press ctrl-c to abort

Neither event will fire. When the sleep runs to completion both will.

This completely precludes a fishscript solution to #2139 because every command could disable the keypad again (i.e. be equivalent to tput rmkx; sleep 5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions