HomeFreeBSD

stand/lua: Chop off the decimal for numbers passed to setcursor

Description

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

Details

Committed
kevansFeb 16 2018, 5:46 PM
Reviewer
imp
Differential Revision
D14375: stand/lua: Chop of the decimal for numbers passed to setcursor
Parents
rS329386: stand/lua: Correct usage and acceptance of BACKSPACE/DELETE keys
Branches
Unknown
Tags
Unknown