]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[console] Allow consoles to update the recorded console size
authorMichael Brown <mcb30@ipxe.org>
Fri, 6 Dec 2013 17:47:54 +0000 (17:47 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 6 Dec 2013 17:47:54 +0000 (17:47 +0000)
commit03401f9d2101b5033c67f6d588152c28a1cc7503
treea0885779addd3444b2c5365f04e6a1a95431dd6f
parent1680d0d14d2bf85ebab6c245b28a7b9dcaa81f53
[console] Allow consoles to update the recorded console size

Provide a mechanism for consoles to update the recorded console width
and height, and use this width and height to provide the curses COLS
and LINES variables.

We choose not to use ANSI escape sequences to obtain the width and
height, for two reasons:

- iPXE's model is that all output is sent to all consoles; we could
  therefore end up with multiple consoles reporting conflicting widths
  and heights

- when a serial console is in use, we probably don't want to resize
  the output shown on the BIOS console to match the size of the serial
  console, since it's likely that the serial console is in use only
  for debugging.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/console.c
src/hci/mucurses/ansi_screen.c
src/include/curses.h
src/include/ipxe/console.h