Terminal Emulator

The terminal emulator is an immutable representation of a terminal screen. It is as safe to use as any other immutable data structure, but can be a little slow when the grid size is large.

In this example we simulate setting up a fixed terminal and caching the output ready for rendering. Note that the cached values in this example, are stored in the model, but usually they would be kept in the view model (there is no view model in an IndigoSandbox game, hence the contrived storage mechanism).