aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-07-19 23:40:01 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-07-19 23:40:01 +0100
commite37e5c02da64f2ab3d4f716c9139d4b1fc17ef2d (patch)
tree1efddc6e7460b9af3162a4f726f4094cc8cdd582
parenta730b416263a02ad7b96faa91027c6ebc1209ca2 (diff)
downloadimv-e37e5c02da64f2ab3d4f716c9139d4b1fc17ef2d.tar.gz
Improve command prompt formatting
-rw-r--r--src/imv.c7
1 files changed, 5 insertions, 2 deletions
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);