Skip to content

Interface ISurfaceProgram

A full-screen program that draws cells straight into a DarkEffekt.Terminal.CellSurface in place of writing escape sequences: the fast path for an interface that animates. The terminal underneath is untouched and returns when the program exits. A program that also implements DarkEffekt.Terminal.ITerminalInput receives the keyboard and the pointer as events.

Declaration
public interface ISurfaceProgram
Declaration
void Start(ISurfaceHost host)
Type Name
DarkEffekt.Terminal.ISurfaceHost host

Called once a frame, before the session draws. Draw here, then call Invalidate on the surface.

Declaration
void Tick(float deltaSeconds)
Type Name
System.Single deltaSeconds

The surface was resized and blanked.

Declaration
void OnResize(int cols, int rows)
Type Name
System.Int32 cols
System.Int32 rows
Declaration
void Stop()