From ba438e3d8318aa72af1fb0998b10c1a2b9b6940b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 11 Aug 2021 16:41:03 -0700 Subject: [PATCH] . --- browse-slack/environment.mu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu index 282b9f56..e0e9fc5f 100644 --- a/browse-slack/environment.mu +++ b/browse-slack/environment.mu @@ -10,6 +10,7 @@ type environment { # item-padding-ver # in characters # avatar-side # in pixels # avatar-space-hor # in characters +# search-position-x # in characters # search-space-ver # in characters # author-name-padding-ver # in characters # post-right-coord # in characters @@ -79,7 +80,7 @@ fn render-item-list screen: (addr screen), env: (addr environment), _items: (add } fn render-search-input screen: (addr screen), env: (addr environment) { - set-cursor-position 0/screen, 2/x 1/y + set-cursor-position 0/screen, 0x22/x=search-position-x 1/y draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, "search ", 7/fg 0/bg draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, "________________________________", 0xf/fg 0/bg }