]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[pxe] Avoid drawing menu items on bottom row of screen 858/head
authorMichael Brown <mcb30@ipxe.org>
Mon, 23 Jan 2023 14:35:57 +0000 (14:35 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 23 Jan 2023 20:30:59 +0000 (20:30 +0000)
commite72670ad7ba6f6d8058359c990375e36e71a1cc4
tree5d1dab42e74130f25494166518a3b925870c9a40
parent68734b9a4dafa540e5333d7af3849b59a10f7a93
[pxe] Avoid drawing menu items on bottom row of screen

Many consoles will scroll immediately upon drawing a character in the
rightmost column of the bottom row of the display, in order to be able
to advance the cursor to the next character (even if the cursor is
disabled).

This causes PXE menus to display incorrectly.  Specifically, pressing
the down arrow key while already on the last menu item may cause the
whole screen to scroll and the line to be duplicated.

Fix by moving the PXE menu one row up from the bottom of the screen.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/usr/pxemenu.c