[PATCH] ui/ncurses: Periodically refresh display

Samuel Mendoza-Jonas sam at mendozajonas.com
Wed Jul 19 13:31:50 AEST 2017


On Wed, 2017-07-19 at 09:49 +0800, Jeremy Kerr wrote:
> Hi Sam,
> 
> > So I found out in testing this breaks the user experience in a hilarious
> > way - I may do a v2 on some UI refactoring I have going on in the
> > background, which will be neater and should avoid this issue.
> 
> One other option would be to:
> 
>  - only start the interactive UI when input is received
>  - before that, we just print the petitboot logs (possibly without
>    ncurses), and possibly a 'hit any key' message
> 
> The advantage of this is that the ncurses startup doesn't happen until
> there is an actual terminal connected, which can be queried for its
> capabilities & size.

That's a good idea (especially for something like a 'datacenter' mode
discussed elsewhere). On the other hand we still have a problem of users
disconnecting and reconnecting, eg. someone leaves a machine in
Petitboot, someone else connects and the screen is blank.
I suspect V2 will be a combination of both ideas :)

Cheers,
Sam


More information about the Petitboot mailing list