zsh-users
 help / color / mirror / code / Atom feed
From: nirva@ishiboo.com (Danny Dulai)
To: schaefer@candle.brasslantern.com (Bart Schaefer)
Cc: zsh-users@sunsite.auc.dk
Subject: Re: clear to end of display
Date: 18 Mar 2000 22:55:23 -0000	[thread overview]
Message-ID: <Liam.953420123.464.22269.1090427954@fizz> (raw)
In-Reply-To: <1000318181050.ZM1430@candle.brasslantern.com>

On 03/18/00, Bart Schaefer said:
>What you should be seeing is a clear-to-end-of-display before the prompt
>is printed, and a clear-to-end-of-line after it.  It's suspicious that
>you get the same thing both times, so the termcap/terminfo description
>of your terminal may be messed up.  If what you're actually getting is
>clear-screen-and-home-cursor, termcap/terminfo is _badly_ messed up.

oh, no.. I guess I phrased that badly.. its doing exactly what you said..
clear eod before prompt, clear eol after prompt.

>The %E sequence is for use in prompts that move the cursor around inside
>%{...%} blocks and need to erase lines that may be above the prompt.
>
>What's the problem with having a clear-eol after the prompt?

Well, I have a prompt that displays the time and my login/host in the upper
right of the screen. when the prompt is on the first two lines of the
terminal, the line the prompt is on gets cleared to eol, and overwrites
some of my prompt in the upper right. I have hacks in there so that clear,
^L, and reset, do an echo twice to move the cursor down two lines, but I
was hoping to avoid that.

Also, the reason eod is annoying me is due to uneccessary clears on a
transparent terminal that cause it to slightly flicker. I know this is the
fault of the terminal program, but its a fault I'd like to work around,
since it can't be fixed very easily.

Offtopic:

Transparency can either copy the X window behind it, or it can just let it
fall trhough to the parent window. the fall through method is really fast
and takes no extra resources. One technique to tint the window using
transparency is when you clear the window, you overwrite it with a giant
block of a single color, but you set the graphics context to do an xor or
and or some other bitwise function built into X. That extra draw is what
causes the flicker, sometimes. It really only happens on huge terminal
windows, and avoiding it as much as possible would be nice.

-- 
___________________________________________________________________________
Danny Dulai                                           Feet. Pumice. Lotion.
http://www.ishiboo.com/~nirva/                            nirva@ishiboo.com


  reply	other threads:[~2000-03-18 22:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-18  9:18 Danny Dulai
2000-03-18 10:54 ` clear to end of display / clear to end of line Danny Dulai
2000-03-18 18:10   ` clear to end of display Bart Schaefer
2000-03-18 22:55     ` Danny Dulai [this message]
2000-03-19  3:50       ` Bart Schaefer
2000-03-19  7:08         ` Danny Dulai
2000-03-19  7:49           ` 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=Liam.953420123.464.22269.1090427954@fizz \
    --to=nirva@ishiboo.com \
    --cc=schaefer@candle.brasslantern.com \
    --cc=zsh-users@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).