freebsd-dev/stand/lua
Kyle Evans 994e1f40f6 lualoader: use floor division to get correct type
This fixes the positioning of the "Welcome to FreeBSD" heading, which was
misplaced after the recent update to Lua 5.4. The issue was previously
masked by a compatibility knob in Lua 5.3 that would cause float-tagged
numbers to render faithfully without the decimal component. Lua 5.4 dropped
that and ensures that it always prints a decimal component, even if it has
to append a ".0" to the value.

Standard division produces a "float", floor division (//) can be used to
guarantee an integer. Floating point operations have been completely ripped
out of the liblua compiled for the bootloader, so this is a nop. This is
decidedly better than trying to hack out the float tag entirely.

Reported-by:	mjg, probably others
MFC-after:	3 days
2021-01-15 15:02:38 -06:00
..
cli.lua lualoader: fix lua-lint run 2020-12-17 18:29:30 +00:00
cli.lua.8 lualoader: cli: provide a show-module-options loader command 2020-12-17 18:24:36 +00:00
color.lua loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
color.lua.8 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00
config.lua lualoader: add loader_conf_dirs support (loader.conf.d) 2020-12-31 10:37:05 -06:00
config.lua.8 lualoader: cli: provide a show-module-options loader command 2020-12-17 18:24:36 +00:00
core.lua loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
core.lua.8
drawer.lua lualoader: use floor division to get correct type 2021-01-15 15:02:38 -06:00
drawer.lua.8 Add drawer.lua(8) 2018-08-20 02:08:39 +00:00
gfx-beastie.lua lualoader: improve the design of the brand-/logo- mechanism 2020-10-04 22:41:43 +00:00
gfx-beastiebw.lua lualoader: improve the design of the brand-/logo- mechanism 2020-10-04 22:41:43 +00:00
gfx-fbsdbw.lua lualoader: improve the design of the brand-/logo- mechanism 2020-10-04 22:41:43 +00:00
gfx-orb.lua loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
gfx-orbbw.lua lualoader: improve the design of the brand-/logo- mechanism 2020-10-04 22:41:43 +00:00
hook.lua
hook.lua.8
loader.lua loader: Fully reset terminal settings, not just colors 2020-03-27 17:37:31 +00:00
Makefile lualoader: improve the design of the brand-/logo- mechanism 2020-10-04 22:41:43 +00:00
menu.lua lualoader: clear up some luacheck warnings 2020-10-01 14:20:36 +00:00
menu.lua.8
password.lua Further normalize copyright notices 2019-09-26 16:19:22 +00:00
password.lua.8 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00
screen.lua lualoader: don't botch disabling of color 2019-10-21 20:09:43 +00:00
screen.lua.8 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00