fish_postexec and fish_prompt don't emit when command is aborted (e.g. with ctrl-c) #2356
As mentioned in #2139, try the following:
function postexec --on-event fish_postexec
function prompt --on-event fish_prompt
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
The text was updated successfully, but these errors were encountered:
I tried that and it seems that it is always printing something:
Like I wrote above - just add those functions, run
Edit: This is with fish master 32a3e15 - i.e. all the latest C++ code.
It's not yet fixed in master, so there is not a real guarantee that it will be fixed in the next major. (Though that is what we strive for with that milestone set). Like @krader1961 says: Patches welcome 😄
@sassanh It would be great if you fixed this but my suggestion that you attempt to do was tongue in cheek. That is, I didn't mean for you to take it seriously. Primarily because the code involved in this issue is very complex and hard to understand. But if you really want to make an attempt at fixing this start with the