]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: query serial console size reliably
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 15 Sep 2018 21:52:07 +0000 (23:52 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Sep 2018 19:55:30 +0000 (21:55 +0200)
commit6bb591f7041fdd201814b8866c1a55775662ab7f
tree2eab2621cf5f58c5770bc7db4f77aad7abe1d7bd
parent7b05667ce23914f6989f8c2ade1ac96ce4ff4eb6
efi_loader: query serial console size reliably

Not all terminals understand CSI [18t for querying the console size.
We should adhere to escape sequences documented in the console_codes
manpage and the ECMA-48 standard.

So here we follow a different approach. We position the cursor to the
bottom right and query its position. Before leaving the function we
restore the original cursor position.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_console.c