menu.lua (3fb656f8ef21332d96de8097521aaa51ddeb649d) | menu.lua (604919c47fa4092db08dadd282851afc9cba0a90) |
---|---|
1-- 2-- SPDX-License-Identifier: BSD-2-Clause 3-- 4-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 5-- Copyright (c) 2018 Kyle Evans <kevans@FreeBSD.org> 6-- All rights reserved. 7-- 8-- Redistribution and use in source and binary forms, with or without --- 542 unchanged lines hidden (view full) --- 551 end 552 if io.ischar() then 553 local ch = io.getchar() 554 if ch == core.KEY_ENTER then 555 break 556 else 557 -- Erase autoboot msg. While real VT100s 558 -- wouldn't scroll when receiving a char with | 1-- 2-- SPDX-License-Identifier: BSD-2-Clause 3-- 4-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 5-- Copyright (c) 2018 Kyle Evans <kevans@FreeBSD.org> 6-- All rights reserved. 7-- 8-- Redistribution and use in source and binary forms, with or without --- 542 unchanged lines hidden (view full) --- 551 end 552 if io.ischar() then 553 local ch = io.getchar() 554 if ch == core.KEY_ENTER then 555 break 556 else 557 -- Erase autoboot msg. While real VT100s 558 -- wouldn't scroll when receiving a char with |
559 -- the cursor at (24, 79), bad emulators do. | 559 -- the cursor at (79, 24), bad emulators do. |
560 -- Avoid the issue by stopping at 79. | 560 -- Avoid the issue by stopping at 79. |
561 screen.setcursor(0, y) | 561 screen.setcursor(1, y) |
562 printc(string.rep(" ", 79)) 563 screen.defcursor() 564 return ch 565 end 566 end 567 568 loader.delay(50000) 569 until time <= 0 --- 12 unchanged lines hidden --- | 562 printc(string.rep(" ", 79)) 563 screen.defcursor() 564 return ch 565 end 566 end 567 568 loader.delay(50000) 569 until time <= 0 --- 12 unchanged lines hidden --- |