about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-10-11 23:06:13 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-11 23:06:13 -0700
commit4d985cda1e703315f4b91640ea860492ee019570 (patch)
tree2cd100539a2aebdd19a60accca5fea36ba6c0836
parent5668acaf442e52c3ae07766ba901702db2df97a2 (diff)
downloadmu-4d985cda1e703315f4b91640ea860492ee019570.tar.gz
7008 - tile: center menu
-rw-r--r--apps/tile/environment.mu3
1 files changed, 3 insertions, 0 deletions
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