screen.lua(8)

screen.lua8

Bootloader screen manipulation module

Overview

screen.lua contains functionality for manipulating the screen. This includes functionality such as clearing the screen, moving the cursor, and setting foreground/background colors using sequences provided by color.lua(8).

Before using the functionality provided by screen.lua, it must be included with a statement such as the following:

local screen = require("screen")

The following variables are exported from screen.lua:

screen.default_x

The x component of the default cursor position.

screen.default_y

The y component of the default cursor position.

The following functions are exported from screen.lua:

screen.clear()

Clears the screen. screen.clear() will do nothing if a serial boot is detected.

screen.setcursor(x, y)

Sets the cursor position to x, y. screen.setcursor() will do nothing if a serial boot is detected.

screen.setforeground(color_value)

Sets the foreground color to color_value, which should be a constant defined in color.lua(8). screen.setforeground() will do nothing if color is disabled.

screen.setbackground(color_value)

Sets the background color to color_value, which should be a constant defined in color.lua(8). screen.setbackground() will do nothing if color is disabled.

screen.defcolor()

Sets the default color scheme, as defined by color.default(). screen.defcolor() will do nothing if color is disabled.

screen.defcursor()

Sets the default cursor position to that defined by screen.default_x, screen.default_y.

Releases

22 releases since FreeBSD 11.3-RELEASE; the text changed 9 times.

  1. 11.3
  2. 11.4
  3. 12.0
  4. 12.1
  5. 12.2
  6. 12.3
  7. 12.4
  8. 13.0–13.2
  9. 13.3–14.2
  10. 14.3–16.0

Authors

The screen.lua file was originally written by Pedro Souza ⟨[email protected]⟩. Later work and this manual page was done by Kyle Evans ⟨[email protected]⟩.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.