Initial public release: fresh history

This commit is contained in:
2025-10-22 04:28:20 -04:00
commit 10e8dfba2d
25 changed files with 2704 additions and 0 deletions

25
include/ui.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef UI_H
#define UI_H
#include <stdint.h>
#include "fb.h"
#ifndef FONT_SCALE
#define FONT_SCALE 2
#endif
/* Enable/disable cmatrix background animation. */
void ui_set_cmatrix(int flag);
/* Draw login screen. If focus_on_password!=0, password box is highlighted. */
void ui_draw_login(framebuffer_t *fb,
const char *username,
const char *password,
int focus_on_password);
void ui_draw_error(framebuffer_t *fb, const char *message);
void ui_draw_welcome(framebuffer_t *fb, const char *username);
void ui_draw_message(framebuffer_t *fb, const char *msg);
#endif /* UI_H */