Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/native/kernel/ui/setup_view.h # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / native / kernel / ui / setup_view.h` 31 lines ยท 1263 bytes Raw Blame History 1 /* setup_view.h -- puts the setup wizard's view (svc/setup_wizard.h) on 2 * Allen's window (ui/allen_ui.h): his words when they change (he speaks them 3 * word by word), the panel of lines and choices, and the line being typed in 4 * the bar. Shared by the kernel (x86/kmain_x86.c) and the host test so both 5 * show exactly the same thing. */ 6 #ifndef AIENOS_SETUP_VIEW_H 7 #define AIENOS_SETUP_VIEW_H 8 #include "../svc/setup_wizard.h" 9 #include "allen_ui.h" 10 11 /* *said: the view's said_gen last spoken (start it at ~0u). done: the panel goes. */ 12 static inline void ck_setup_show(const sw_view *v, unsigned *said, int done, uint64_t now) 13 { 14 if (done) { 15 ck_allen_ui_panel(0, now); 16 ck_allen_ui_input("", 0, now); 17 return; 18 } 19 if (v->said_gen != *said) { 20 *said = v->said_gen; 21 ck_allen_ui_said(0, v->say, now); 22 } 23 ck_allen_ui_panel_view p = {{0}, 0, {0}, 0, v->lit, v->hint, v->aside, v->prompt}; 24 for (unsigned i = 0; i < v->nline && i < CK_ALLEN_UI_PANEL_LINES; i++) 25 p.line[p.nline++] = v->line[i]; 26 for (unsigned i = 0; i < v->nchoice && i < CK_ALLEN_UI_CHOICES; i++) 27 p.choice[p.nchoice++] = v->choice[i]; 28 ck_allen_ui_panel(&p, now); 29 ck_allen_ui_input(v->typed, v->ntyped, now); 30 } 31 #endif