Gambas Documentation - /comp/gb.ncurses/window/buffered

# Window.Buffered (gb.ncurses)

Property Buffered As Boolean

Returns or sets whether the output to the Window is buffered or not. By default, it is not.
A buffered Window will never produce output automatically but only by a call to refresh ?.

This is handy for a program that produces output in multiple stages to prevent a flickering screen (think of: games).

Since the feature of overlapping Windows requires to refresh more parts of the screen than are actually painted on by a particular Window (i.e. all areas in all windows that were modified since the last refresh), the above description may be misleading: When `WindowA.Buffered = True`, only WindowA will not automatically produce any output but a WindowB which is not buffered may issue a complete screen redraw (including WindowA). So rely on this property with caution and use it only on critical regions of code (see the Pong example).

### See also

- refresh ?