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.
Assembly: DarkEffekt.Terminal.Core
Section titled “Assembly: DarkEffekt.Terminal.Core”public interface ISurfaceProgramMethods
Section titled “Methods”Start(ISurfaceHost)
Section titled “Start(ISurfaceHost)”void Start(ISurfaceHost host)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.ISurfaceHost | host |
Tick(float)
Section titled “Tick(float)”Called once a frame, before the session draws. Draw here, then call Invalidate on the surface.
void Tick(float deltaSeconds)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Single |
deltaSeconds |
OnResize(int, int)
Section titled “OnResize(int, int)”The surface was resized and blanked.
void OnResize(int cols, int rows)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
cols |
System.Int32 |
rows |
Stop()
Section titled “Stop()”void Stop()