Open Gautham opened 3 years ago
Generally you want to start async jobs in precmd hooks to get information for prompt segments and then reset-prompt when you get them. If you want to run scripts manually, you really should just be using regular foreground/background jobs. Or if you want to have something similar to background jobs but the output is written to files and then you see in one of the prompt segments how many unread outputs you have, I guess that is also doable.
First of all, thanks for this library! This awesome 🥇
This is not strictly a zsh-async qn but it might be helpful to others so asking here: What would be the recommended way to display output from the callback fn?
zle reset-prompt
as a preexec function which basically clears any printed text from the (now-)previous-line prompt.Do you have any suggestions on how I can safely show my output given the above two constraints?