zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: Long Prompt Lines Cause Terminal History Loss on Window Resize
Date: Tue, 1 Nov 2016 20:44:34 -0700	[thread overview]
Message-ID: <161101204434.ZM26466@torch.brasslantern.com> (raw)
In-Reply-To: <CA+AzK=g8exUieObrD2_4n_tX1t_LP6DsYg=hC7W3M0BHKntGWQ@mail.gmail.com>

On Oct 31,  1:45pm, Aaron U'Ren wrote:
}
} Does anyone know why long prompt lines and window resizing causes lines of
} terminal history to be removed?

This is terminal-specific behavior; older xterm reformats the scrollback
itself to fit into the narrow window and then never widens it again.  In
Gnome terminal the last line of the previous prompt gets overwritten but
the scrollback above the first line of the first long prompt is left alone
(although it extends the window with blank lines below the prompt as the
window is enlarged again, so you have to scroll up to see the previous
screen; but it's not lost.)

Questions about why terminals act oddly/differently when text is printed
to the lower right corner have just about risen to the level of needing a
FAQ entry ...


  reply	other threads:[~2016-11-02  5:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-31 18:45 Aaron U'Ren
2016-11-02  3:44 ` Bart Schaefer [this message]
2016-11-02  3:53   ` Aaron U'Ren
2016-11-03  3:30     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=161101204434.ZM26466@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).