From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29431 invoked by alias); 18 Apr 2015 17:21:45 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34930 Received: (qmail 7513 invoked from network); 18 Apr 2015 17:21:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=9RzPymRoheb39GWgQN3G9NLu7UuxAxlxtTlqX0cXAOk=; b=Eq295vmwASRu9kSKrDYc+Bd8u7RjXzd+rLTpxTBrFSxAQM8BYo96Q1mLxHFytZ65Jr SGovLyNfrg/6opFhdXoCf/baNR4pJ1HtqC4lfSdRzuE0iLR6p7dgiHhHnSmL+iwQWoaD phV1cyNMlO6ZATDkl3FEGrhVtzwJXNMtPWm4gzeGIsMZJUJ2+3WGUY4QAhnM6ZdAgN9N CzMBoe5/kbAytBWLoRAIdEF8IdlsTGL32mmCXZcEwKKVdjMh+EBz2O3Vk7xAW9VkE/i4 PirimVnTNIabsQqyuZehWxugFUcfjAtJR1UL4+s/1ncW2aU8MO/Ej5UmINgJFKRxYHxd d0gg== X-Gm-Message-State: ALoCoQnd59hvzDus+2HRBVBw5u/wISIXSi3xuTivN2yhU5quJ7ynPrcSY6l+2MRKyVFeAjrA/Ehc X-Received: by 10.60.131.206 with SMTP id oo14mr7807587oeb.30.1429377702452; Sat, 18 Apr 2015 10:21:42 -0700 (PDT) From: Bart Schaefer Message-Id: <150418102138.ZM12808@torch.brasslantern.com> Date: Sat, 18 Apr 2015 10:21:38 -0700 In-Reply-To: <55328E8D.8000502@thequod.de> Comments: In reply to Daniel Hahler "Re: Prompt redrawing issues with wrapped prompt on SIGWINCH" (Apr 18, 7:04pm) References: <55318F9F.7040204@thequod.de> <150418085735.ZM12718@torch.brasslantern.com> <55328E8D.8000502@thequod.de> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "Zsh Hackers' List" Subject: Re: Prompt redrawing issues with wrapped prompt on SIGWINCH MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 18, 7:04pm, Daniel Hahler wrote: } } Some remarks: it does not only affect urxvt, but also gnome-terminal. } So it's likely to be a common issue with all terminals?! Doesn't happen to me with xterm, but it sends multiple SIGWINCH rather than wait for the final size of the window. } Could this be addressed by e.g. having the terminal notify zsh about } SIGWINCH before reflowing/rewrapping the text, or something similar? Signals are asynchronous at the OS level so the emulator can't control whether the shell has as chance to respond to the signal before it redraws the text. In any case this would require reprogramming the emulator, so is out of our hands. } > PS1=$'${(pl:COLUMNS-1::=:)}\n %# ' } } This suggested workaround only helps if you resize the window by one } column, e.g. when using the mouse. But modkey-h/l in awesome changes } the master-window-factor by a percent of the screen size. The suggested workaround was successful for me when using mouse-drag to resize the window, despite urxvt sending only a single SIGWINCH when the mouse was released, which should be analogous to having the window manager trigger a proportional resize. What version of zsh do you have?