about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-13 06:25:02 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-13 06:34:22 -0700
commitb6580e0b146389e667761398b8fd1c7c9160b9af (patch)
tree51e98426b767abc9f3940efe3e8ef3a63a15cdb7
parentfb703575b0248be0b882d680eb3b6d427d5891de (diff)
downloadmu-b6580e0b146389e667761398b8fd1c7c9160b9af.tar.gz
slack: clearer loading screen
-rw-r--r--browse-slack/main.mu8
1 files changed, 6 insertions, 2 deletions
diff --git a/browse-slack/main.mu b/browse-slack/main.mu
index eef1f904..c1ab1c2d 100644
--- a/browse-slack/main.mu
+++ b/browse-slack/main.mu
@@ -57,6 +57,7 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)
   var s/ebx: (addr stream byte) <- copy _s
   var sector-count/eax: int <- copy 0x400  # test_data
 #?   var sector-count/eax: int <- copy 0x20000  # largest size tested; slow
+  set-cursor-position 0/screen, 0x20/x 0/y  # aborts clobber the screen starting x=0
   draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, "loading ", 3/fg 0/bg
   draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen screen, sector-count, 3/fg 0/bg
   draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, " sectors from data disk..", 3/fg 0/bg
@@ -111,9 +112,12 @@ fn parse in: (addr stream byte), users: (addr array user), channels: (addr array
     var c/eax: byte <- peek-byte in
     compare c, 0
     break-if-=
-    set-cursor-position 0/screen, 0x20 0x20
+    set-cursor-position 0/screen, 0x20/x 1/y
+    draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, "parsed " 3/fg 0/bg
     draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, user-idx, 3/fg 0/bg
-    draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, item-idx, 4/fg 0/bg
+    draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, " users, " 3/fg 0/bg
+    draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, item-idx, 3/fg 0/bg
+    draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, " posts/comments" 3/fg 0/bg
     clear-stream record
     parse-record in, record
     var user?/eax: boolean <- user-record? record
11 12 13 14 15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102