Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: scrolling



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