SCREEN.LUA(8)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’– SCREEN.LUA(8) πŸ’–

okay so this is the section 8 manual page for screen.lua, straight out of the System Manager's Manual, and it's literally the bootloader screen manipulation module. no cap. 🫢

🌸 NAME 🌸

screen.lua β€” bootloader screen manipulation module. short, iconic, does exactly what it says on the tin. πŸ’…

🌈 DESCRIPTION 🌈

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). it's giving screen glow-up toolkit, bestie. ✨

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

local screen = require("screen")

πŸŽ€ the exported variables πŸŽ€

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 exported functions πŸ’…

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. ⭐

πŸ”₯ SEE ALSO πŸ”₯

  • color.lua(8) β€” the color lore companion page, go read it bestie. πŸ’œ

πŸ‘‘ AUTHORS πŸ‘‘

  • The screen.lua file was originally written by Pedro Souza <pedrosouza@FreeBSD.org>. 🫢
  • Later work and this manual page was done by Kyle Evans <kevans@FreeBSD.org>. πŸ’–

okay bestie, that's the whole page! πŸ’– this cutie is from Debian, dated March 29, 2025, and it's SCREEN.LUA(8) β€” mwah! πŸ’…βœ¨

πŸ“¦ where this page comes from