zsh-workers
 help / color / mirror / code / Atom feed
From: mason@primenet.com.au (Geoff Wing)
To: zsh-workers@sunsite.auc.dk
Subject: Bart's cleareod patch users/2973 (Was: zsh-3.1.6-dev-20)
Date: 25 Mar 2000 07:51:21 GMT	[thread overview]
Message-ID: <slrn8dorvp.6ft.mason@coral.primenet.com.au> (raw)
In-Reply-To: <rsq7ler96h0.fsf@crane.jaist.ac.jp>

Tanaka Akira <akr@jaist.ac.jp> typed:
:* zsh-users_2973 is not applied. (Because Geoff is not commented?)

Sorry, the message made it onto the disk and into the mailing list archive
but for some reason didn't get posted into my news system so I missed it.

Excerpts from Bart's message:
:I believe this has to do with the always_last_prompt option -- the code
:that prints the prompt wants to be sure that there's a clean slate below
:the prompt where it can display completion listings.  However, it's a
:bit too aggressive; it performs the clear-eod whenever it's "safe" to do
:so (that is, whenever there's no completion listing there already that
:needs to continue to be seen) and not just whenever it's necessary to do
:so (which it -almost- never is when always_last_prompt is not set).

Usually it's unnecessary.  However, most of the commands people run are
external to the shell and their output cannot be guaranteed to leave the
cursor in an appropriate position (i.e. below any output the external
command has generated).  Thus we clear a ``workspace'' and now we can
utilise an area we know is blank.  CLEAREOD is the quickest way.  Bart's
change makes it affect only the area we currently use.  The problem with
this (though maybe other people won't consider it a problem) is that it
does not leave any buffer space (e.g. an extra blank line) between zsh
output and any garbage that may be lying around on the screen.  Always
putting an extra blank line in will cause some extra/unnecessary scrolling
if we're at the bottom of the screen (and usually we can't reliably
determine where we are on the screen).  So the options are:
1) CLEAREOD                                (commonly: ``^[[J'')
2) CLEAREOL in our area                    (commonly: ``^[[K'' on each line) 
3) CLEAREOL in our area plus an extra line

Now there are parts of the screen refresh which are a bit aggressive, viz.
if we've done a CLEAREOD we still might do CLEAREOL further on - however
I haven't considered all the display permutations to determine whether it
is worth removing them yet.

Regards,
-- 
Geoff Wing : <gcw@pobox.com>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@rxvt.org>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@zsh.org>       Phone   : (Australia) 0413 431 874


  parent reply	other threads:[~2000-03-25  7:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-23 21:56 zsh-3.1.6-dev-20 Peter Stephenson
2000-03-25  1:35 ` zsh-3.1.6-dev-20 Tanaka Akira
2000-03-24 20:22   ` zsh-3.1.6-dev-20 Peter Stephenson
2000-03-25  7:51   ` Geoff Wing [this message]
2000-03-25 16:46   ` zsh-3.1.6-dev-20 Bart Schaefer
2000-03-25 17:17     ` zsh-3.1.6-dev-20 Bart Schaefer
2000-03-25  7:53 ` zsh-3.1.6-dev-20 Chmouel Boudjnah
2000-03-25 21:26   ` zsh-3.1.6-dev-20 Bart Schaefer
2000-03-25 17:26 ` zsh-3.1.6-dev-20 Bart Schaefer
2000-03-24 20:22   ` zsh-3.1.6-dev-20 Peter Stephenson

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=slrn8dorvp.6ft.mason@coral.primenet.com.au \
    --to=mason@primenet.com.au \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).