Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: scrolling
- X-seq: zsh-workers 24019
- From: Clint Adams <clint@xxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: PATCH: scrolling
- Date: Wed, 24 Oct 2007 18:50:08 -0400
- Cc: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- In-reply-to: <21130.1193264371@xxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <21130.1193264371@xxxxxxxxxxxxxxxxxxx>
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
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author