shithub: ham

Download patch

ref: 20e846aa929c8461a8138f17b81473b0d3690d75
parent: 1447ae62aa6d8eabd358982cb3eb0834fb63c0be
author: kvik <kvik@a-b.xyz>
date: Mon Feb 3 17:40:38 EST 2020

Constant initial height of the command window

--- a/samterm/main.c
+++ b/samterm/main.c
@@ -42,7 +42,7 @@
 	scratch = alloc(100*RUNESIZE);
 	nscralloc = 100;
 	r = screen->r;
-	r.max.y = r.min.y+Dy(r)/5;
+	r.max.y = r.min.y+(6*font->height)+(3*FLMARGIN);
 	flstart(screen->clipr);
 	rinit(&cmd.rasp);
 	flnew(&cmd.l[0], gettext, 1, &cmd);