Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Call a function when idle?



Thanks for the replies.

I adapted Bart's code as follows:

TRAPALRM () {
    TMOUT=60
    title
    if ((!$DIDPRINT)) {
        DIDPRINT=1
        print -nP '\r%n@%m(%y):%d%# \n%# '
    }
}
precmd () {
    TMOUT=120
    DIDPRINT=0
    title
}

-aw




Messages sorted by: Reverse Date, Date, Thread, Author