path: root/
diff options
authorSamuel Mendoza-Jonas <>2017-10-31 10:49:51 +1100
committerSamuel Mendoza-Jonas <>2017-11-14 16:33:41 +1100
commit8d1e4f053574d69aae89af19983c96500b4156a4 (patch)
tree190c566638fac6bbcc7964566cbe75e6d05d3fff /
parent669083ee9eda63af65d7cfc43968947f09162996 (diff)
ui/ncurses: Safely handle lost terminal control commandsv1.6.3
Normally terminal control commands are caught and handled before ncurses or Petitboot could see them. However several combinations of broken terminal emulators or console connections can cause these command sequences to be seen by Petitboot, usually resulting in Petitboot exiting due to the ESC character and then the rest printed to the console. Aside from confusing the user this can also cancel autoboot, so it's important we don't let these sequences go unnoticed if possible. In ui/ncurses/console-codes we add a state machine that recognises the syntax of these control/escape sequences and handles the lost characters. We don't try to emulate the functionality of these commands, instead just logging them for reference. Signed-off-by: Samuel Mendoza-Jonas <>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud