Futurebasic/Language/Reference/flushwindowbuffer

= FLUSHWINDOWBUFFER statement =

Statement
✔ Appearance ✔ Standard ✔ Console

Revised
April 2003 (Release 8)

Description
Under OS X, all drawing to a window is intercepted and stored ("buffered") by the Window Server. The Window Server normally transfers the drawing to the screen only when your program executes a  statement. You can force an early update with.

If  is omitted, or is 0, the current output window is flushed by the OS X Window Server. If  is non-zero, window   is flushed.

The default behavior of the FutureBASIC runtime is to flush the current output window each time a  statement is performed. You can control that behavior:  will turn off the automatic flushing. You still can force the flushing for a specific window with. will restore the automatic flushing.

The  command has no effect unless the program is running under OS X.

Example: