Extend the menu drawing function to support custom characters and

styles, from Alexis Hildebrandt.
This commit is contained in:
nicm
2023-08-08 07:41:04 +00:00
parent 2b535bc173
commit 1071ef8fc5
4 changed files with 89 additions and 68 deletions

3
menu.c
View File

@ -203,7 +203,8 @@ menu_draw_cb(struct client *c, void *data,
screen_write_start(&ctx, s);
screen_write_clearscreen(&ctx, 8);
screen_write_menu(&ctx, menu, md->choice, &gc);
screen_write_menu(&ctx, menu, md->choice, BOX_LINES_DEFAULT,
&grid_default_cell, &grid_default_cell, &gc);
screen_write_stop(&ctx);
for (i = 0; i < screen_size_y(&md->s); i++) {