From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4892 invoked by alias); 13 Feb 2017 14:31:15 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22462 Received: (qmail 5230 invoked from network); 13 Feb 2017 14:31:15 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf0-f46.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.215.46):SA:0(-0.7/5.0):. Processed in 0.795611 secs); 13 Feb 2017 14:31:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: jesper.nygards@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.215.46 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=z5LNViCdqdR3ww6n0CxW/dELtnJ4zBUfWYt3KQQSGps=; b=iCT4K/MSz+Wm1sAZoGOQh2AH1u7qgWk29XS+4YNvCCGEPvO1LoA7e1eoR8zzmkng68 DKPUrpwpRRP12aasHAusWj4C6NoSFhl5d++pzJ5T4wo9XM4wc71io8ed9JP6/kaBg1d/ JJe2gEwaGWF1YeHmhes97aHKBO6KzHF+oqWx5K8BJFQJb3rBu8X+rSfEZrWrUgGs0JWy 4ybv/kYkTwXmmq2AaF9T+vd8oVLMDZQWVr+Wpw9kkTBJCMEH+w6+7WZNbEecL8/dFQwQ iTzqAJ7vOeU8hW2ySpGFbWv8KmaAgzbkWBGe3hdg2faP6a9XrIXC1Mj0BYfT5IyehdP/ HShA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=z5LNViCdqdR3ww6n0CxW/dELtnJ4zBUfWYt3KQQSGps=; b=W9WXRd07QtXJNSSdY/zSwepM+3ZxjJQK9x8LItraAw3fvwdRS52ktpv4K1SIoRM6J5 Tul483/eBugSWE3qrhhwk98/RAaWUwscq5LMuh5NWqs6Moe9+WENYzVyuVS46roMVbj6 juIgrvJ4d4LnMfc9uMGP7tyZ1+q1SIODSAxEau5IX0I+KIilzEWN4vNO7jKTDn60RCzh qoReXweKZ5OcNNR4Y5UIS7PEQxKbo+B+A5vTwOtARGPXTmSr4JJNGiah/7Hkw5zjXvdt 7soPO2eXfMqAkIcKsvB0T/BdIEOKZMGITr1Rn1BXlI4KGxeXSiPg68/WqKWUDRfyPoFW Mh1w== X-Gm-Message-State: AMke39lvku7LP4I8Yj8WaTzoxFRpqDbAEp4svLZOzqJWPlBA8cSqMYKUQMpcY7M/KlG6ReUbERafvo5vZHeLUA== X-Received: by 10.46.77.147 with SMTP id c19mr2356068ljd.105.1486996266557; Mon, 13 Feb 2017 06:31:06 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Jesper_Nyg=C3=A5rds?= Date: Mon, 13 Feb 2017 15:31:05 +0100 Message-ID: Subject: Disabling prompt refresh To: Zsh Users Content-Type: multipart/alternative; boundary=94eb2c1aa5e8402a8a05486a4ca1 --94eb2c1aa5e8402a8a05486a4ca1 Content-Type: text/plain; charset=UTF-8 I have the following function, written by Peter years ago, in my .zshrc: schedprompt() { emulate -L zsh zmodload -i zsh/sched integer i=${"${(@)zsh_scheduled_events#*:*:}"[(I)schedprompt]} (( i )) && sched -$i zle && zle reset-prompt sched +30 schedprompt } It refreshes the prompt every 30 seconds, which is very nice. I also have the following little widget, which displays the current dir stack below the command line: _show_dirs() { zle -M "$(dirs -vl)" } However, the schedprompt-function makes the output from "zle -M" disappear, so that sometimes when I have used the widget to display the dir stack, it disappears because of the refresh. Is there a way to either disable the prompt refresh while the message is displayed, or, alternatively, to redisplay the message after a prompt refresh? --94eb2c1aa5e8402a8a05486a4ca1--