Home
last modified time | relevance | path

Searched hist:"901 d96e3fb0056b346db5fc0a54a756d7015f206" (Results 1 – 1 of 1) sorted by relevance

/freebsd/stand/lua/
H A Dscreen.luadiff 901d96e3fb0056b346db5fc0a54a756d7015f206 Fri Feb 16 18:46:07 CET 2018 Kyle Evans <kevans@FreeBSD.org> stand/lua: Chop off the decimal for numbers passed to setcursor

Decimals screw up the escape sequence and the cursor will not get set. Right
now this only affects setting the cursor for drawing "Welcome to FreeBSD" --
the resulting number after our (x+(w/2)-9) calculation gets output as
"14.0."

This should be fixed at the interpreter level, rather than here, but this is
not a widespread problem at the moment so we'll fix it up in further work.

Reported by: David Wolfskill <david@catwhisker.org>
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D14375