zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: PATCH: scrolling
Date: Wed, 24 Oct 2007 18:50:08 -0400	[thread overview]
Message-ID: <20071024225008.GA23229@scowler.net> (raw)
In-Reply-To: <21130.1193264371@pws-pc.ntlworld.com>

On Wed, Oct 24, 2007 at 11:19:31PM +0100, Peter Stephenson wrote:
> This adds scrolling of windows to zcurses.

Hmm, this test script doesn't do quite what I expected in the second half.

zmodload curses
{
zcurses init
zcurses addwin tw $(( LINES - 15 )) $(( COLUMNS - 20 )) 5 10
zcurses border tw
zcurses move tw 1 1
zcurses char tw B
zcurses char tw l
zcurses char tw a
zcurses char tw h
zcurses move tw 2 2
zcurses string tw String
zcurses move tw 3 3
zcurses attr tw bold underline
zcurses string tw BoLD
zcurses move tw 4 4
zcurses attr tw -bold -underline green/black
zcurses string tw Green
zcurses refresh tw
zcurses addwin bw 5 $(( COLUMNS - 20 )) $(( LINES - 10 )) 10
zcurses border bw
zcurses refresh bw
sleep 1
zcurses scroll tw -1
zcurses refresh tw
sleep 1
zcurses scroll tw -1
zcurses refresh tw
sleep 1
zcurses scroll tw 1
zcurses refresh tw
sleep 1
zcurses scroll tw 1
zcurses refresh tw
sleep 1
zcurses refresh
sleep 1
zcurses refresh tw
zcurses refresh bw
sleep 5
zcurses delwin tw
zcurses delwin bw
} always {
zcurses end
}


  reply	other threads:[~2007-10-24 22:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24 22:19 Peter Stephenson
2007-10-24 22:50 ` Clint Adams [this message]
2007-10-25  9:02   ` 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=20071024225008.GA23229@scowler.net \
    --to=clint@zsh.org \
    --cc=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@sunsite.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).