about summary refs log tree commit diff stats
path: root/apps/tile/data.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-12-05 21:01:30 -0800
committerKartik Agaram <vc@akkartik.com>2020-12-05 21:01:30 -0800
commit5c46d55532d1e0bfb3fd58e4684380feab509e7a (patch)
treea95fd2e38b69c2ffab18a663bc0872f8f74ef705 /apps/tile/data.mu
parent4ef29dc9d537402cd58c260638e0536d0967457e (diff)
downloadmu-5c46d55532d1e0bfb3fd58e4684380feab509e7a.tar.gz
7338 - tile: architecture starting to crystallize
In particular, I'm starting to have opinions about how to scalably position
the cursor at the end of each frame.

One advantage of text mode without a pointer device (mouse/trackpad): only
one cursor to track. UI can't be modified anywhere. That simplifies any
reactive UI framework.
Diffstat (limited to 'apps/tile/data.mu')
-rw-r--r--apps/tile/data.mu2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/tile/data.mu b/apps/tile/data.mu
index dada0b5b..2e18908c 100644
--- a/apps/tile/data.mu
+++ b/apps/tile/data.mu
@@ -3,6 +3,8 @@ type sandbox {
   data: (handle line)
   # display data
   cursor-call-path: (handle call-path-element)
+  cursor-row: int
+  cursor-col: int
   expanded-words: (handle call-path)
   partial-name-for-cursor-word: (handle word)  # only when renaming word
   partial-name-for-function: (handle word)  # only when defining function