diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2019-07-19 23:40:01 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2019-07-19 23:40:01 +0100 |
commit | e37e5c02da64f2ab3d4f716c9139d4b1fc17ef2d (patch) | |
tree | 1efddc6e7460b9af3162a4f726f4094cc8cdd582 | |
parent | a730b416263a02ad7b96faa91027c6ebc1209ca2 (diff) | |
download | imv-e37e5c02da64f2ab3d4f716c9139d4b1fc17ef2d.tar.gz |
Improve command prompt formatting
-rw-r--r-- | src/imv.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |