import{_ as t,a,b as o,ag as i}from"./chunks/framework.BcrMLAmg.js";const u=JSON.parse('{"title":"Display","description":"","frontmatter":{},"headers":[],"relativePath":"references/elements/Display.md","filePath":"references/elements/Display.md","lastUpdated":1757844696000}'),r={name:"references/elements/Display.md"};function d(l,e,n,s,c,h){return o(),a("div",null,e[0]||(e[0]=[i('
The Display is a special element where you can use the window (term) API to draw on the display, useful when you need to use external APIs.
Extends: VisualElement
| Method | Returns | Description |
|---|---|---|
| Display:getWindow | table | Returns the current window object |
| Display:write | Display | Writes text to the display |
Returns the current window object
table window The current window objectWrites text to the display at the given position with the given foreground and background colors
x number The x position to write toy number The y position to write totext string The text to writefg (optional) colors The foreground color (optional)bg (optional) colors The background color (optional)Display self The display instance