From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10911 invoked by alias); 14 Feb 2016 18:31:31 -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: 21286 Received: (qmail 1963 invoked from network); 14 Feb 2016 18:31:28 -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=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:in-reply-to :comments:to:subject:mime-version:content-type; bh=htg5eu0a/bt1sG+9H9oW2x+2Fo+HekL0qrcJKgleork=; b=IrUPcb05Zvg01XbqMya5+Wg3hVHfwZv34vfM9FkqXlXWiWum56lFi7pNQ8lsm96U3z pG94dVly1Gr653Oy7Qlfoem0L+eFT6/2mT6MhHcpRVv8gMlP/jCVNjykKndahFF0yFK1 QKOP1oUW8hJUZFuvdbNiGU70A152+WJq1LC9c9Ru134RFaHcLV7f8kGpZG6UcRKP8edo jiiC6OwJaY/hNDBHATion/dSWMba/M1F8aOsmFLOSfzqJezl+Ym8bItdMgT5A5it8IAb cPe5Y57cu3VdmNEawxyHoGWbxw5T9Is226JCyRSXA7mZYdv6reseKIRNWRtG0knwkC02 MhFg== 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:in-reply-to:comments:to:subject:mime-version :content-type; bh=htg5eu0a/bt1sG+9H9oW2x+2Fo+HekL0qrcJKgleork=; b=VHXx4E76nCACNnh7/NwcltYFOIqLU0R8Uv0kcjP2ivHfuBBwf67SGIIC6oall5Q9iU pXXhaN7h990FJJsfxZJGlDprM/gh96u7egzm72AJ3jr62aBGL3DvtIYc7/h8iuNVbeP+ apWV1VsvFA55ZtAACerkH5/EwzEgKcd4T9cYTYzhtRNBwb0sOykH7n9k2UFHRc5MOJBc varryyl4YDi1nTRywBKoHWIRdhtox506BqTaHdI8dXyp/383KzGcAj/Uon+8baFBdSfw Mh3Q5BYTQeYTHLYEZ933u8RmYh5IcDAfsSR3Joz6ASs6bAP2+GOokacAcNjWzA1Vn8sj zuOQ== X-Gm-Message-State: AG10YOQ6qeYmFfeJTHTIIjPAVbYTWnyLdxU8gh5YCT5QW7NrhrcMO5Awyfy5pNWxjomacw== X-Received: by 10.98.70.80 with SMTP id t77mr17720224pfa.107.1455474685627; Sun, 14 Feb 2016 10:31:25 -0800 (PST) From: Bart Schaefer Message-Id: <160214103143.ZM20574@torch.brasslantern.com> Date: Sun, 14 Feb 2016 10:31:43 -0800 In-Reply-To: Comments: In reply to Florian Meier "ZSH vertical resize - last terminal line disappears" (Feb 9, 8:13pm) References: In-Reply-To: Comments: In reply to Florian Meier "Re: ZSH vertical resize - last terminal line disappears" (Feb 10, 4:40pm) X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: ZSH vertical resize - last terminal line disappears MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 9, 8:13pm, Florian Meier wrote: } } Every time I split my terminal vertically (or just resize it), the } last line of the text output disappears or just gets overwritten by } the prompt, I don't know. On Feb 10, 4:40pm, Florian Meier wrote: } } As a follow-up, i found a workaround by accident. } When the first line (the "-----------" line) does not reach the column } on the very right, the problem disappears... } Is someone able to reproduce this weird behavior? So what's happening is that the terminal *might* scroll when a character is printed in the bottom right corner. This behavior depends on the terminal type and sometimes on a configurable setting for the terminal. Sometimes it depends on whether that last character is a space or a newline or is followed by a newline. There's some discussion of this in the manual under the ZLE_RPROMPT_INDENT variable. Depending on whether this happens or not, ZLE can get confused about the number of lines it needs to move upward from the bottom of the screen in order to redraw the prompt. The difficulty is that there's no reliable way to determine how any given terminal will behave; even when there is a corresponding terminfo field, it is often incorrect. No matter what we do it'll always be wrong for somebody. Your workaround -- avoiding lines that print all the way to the right margin is the only 100% effective approach.