From 4d985cda1e703315f4b91640ea860492ee019570 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 11 Oct 2020 23:06:13 -0700 Subject: 7008 - tile: center menu --- apps/tile/environment.mu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu index 64a779f7..ab3a30d8 100644 --- a/apps/tile/environment.mu +++ b/apps/tile/environment.mu @@ -833,6 +833,9 @@ fn clear-canvas _env: (addr environment) { var repl-col/ecx: int <- copy *_repl-col draw-vertical-line screen, 1, *nrows, repl-col # wordstar-style cheatsheet of shortcuts + var menu-start/ecx: int <- copy repl-col + menu-start <- subtract 0x2c # 44 = half the size of the menu + move-cursor screen, *nrows, menu-start start-reverse-video screen print-string screen, " ctrl-a " reset-formatting screen -- cgit 1.4.1-2-gfad0