Created attachment 229013 [details] menu.lua.patch The countdown message displayed by "autoboot_delay" is as follows. ================================================== ... "Autoboot in 11 seconds. [Space] to pause" "Autoboot in 10 seconds. [Space] to pause" "Autoboot in 9 seconds. [Space] to pausee" "Autoboot in 8 seconds. [Space] to pausee" ... ================================================== The 'e' at the end remains when the number of digits of "time" is decreased. I think the attached patch will help. Thanks.
Patch LGTM
Take. Is "Katsuyuki Miyoshi" <katsubsd@gmail.com> acceptable for attribution?
(In reply to Kyle Evans from comment #2) Yes, I'm acceptable for attribution. Thanks.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=bb4c691299c5d699cea29e18fef96bda1cef13da commit bb4c691299c5d699cea29e18fef96bda1cef13da Author: Katsuyuki Miyoshi <katsubsd@gmail.com> AuthorDate: 2021-10-26 16:21:34 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2021-10-26 16:24:29 +0000 lualoader: fix the autoboot_delay countdown message When the timer drops from double to single digits, a spare 'e' is left on the end of the line as we don't overwrite it. Include an extra space at the end to account for this and overwrite the leftover character. PR: 259429 MFC after: 3 days Reviewed by: emaste stand/lua/menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=9cb5ea3dd2ec87a08cef3963823a1015611a1b94 commit 9cb5ea3dd2ec87a08cef3963823a1015611a1b94 Author: Katsuyuki Miyoshi <katsubsd@gmail.com> AuthorDate: 2021-10-26 16:21:34 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2022-03-09 21:21:54 +0000 lualoader: fix the autoboot_delay countdown message When the timer drops from double to single digits, a spare 'e' is left on the end of the line as we don't overwrite it. Include an extra space at the end to account for this and overwrite the leftover character. PR: 259429 (cherry picked from commit bb4c691299c5d699cea29e18fef96bda1cef13da) stand/lua/menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)