From e37e5c02da64f2ab3d4f716c9139d4b1fc17ef2d Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Fri, 19 Jul 2019 23:40:01 +0100 Subject: Improve command prompt formatting --- src/imv.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/imv.c') diff --git a/src/imv.c b/src/imv.c index 9792cc3..9c96797 100644 --- a/src/imv.c +++ b/src/imv.c @@ -1182,11 +1182,14 @@ static void render_window(struct imv *imv) /* draw command entry bar if needed */ if (imv_console_prompt(imv->console)) { + const int bottom_offset = 5; const int height = imv->font.size * 1.2; imv_canvas_color(imv->canvas, 0, 0, 0, 0.75); - imv_canvas_fill_rectangle(imv->canvas, 0, wh - height, ww, height); + imv_canvas_fill_rectangle(imv->canvas, 0, wh - height - bottom_offset, + ww, height + bottom_offset); imv_canvas_color(imv->canvas, 1, 1, 1, 1); - imv_canvas_printf(imv->canvas, 0, wh - height, ":%s|", imv_console_prompt(imv->console)); + imv_canvas_printf(imv->canvas, 0, wh - height - bottom_offset, + ":%s\u2588", imv_console_prompt(imv->console)); } imv_canvas_draw(imv->canvas); -- cgit v1.2.3