[comp.windows.x] Scrolling Text In a Window

dbainbri@ics.uci.edu (David Bainbridge) (04/19/89)

Is there an easy way to scroll text in a window?  I am not using the tool
kits, or widgets.  Right now I am using a the sequence: XGetImage, 
XClearWindow, XPutImage, then draw the new text line.  I am hoping there
is a better way.  

-------------------------------------------------------------------------
|  University of California  | dbainbri@ics.uci.edu			|
|           Irvine	     |						|
-------------------------------------------------------------------------

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (04/19/89)

    Right now I am using a the sequence: XGetImage, 
    XClearWindow, XPutImage, then draw the new text line.

Gaak!

    I am hoping there is a better way.

Yes.  Take a look at XCopyArea, and note that it is perfectly reasonable
(in fact normal) for the source and destination drawables to be the same.