From d3103378c5f4d52f7f5833583defe1a76bccac4d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 23 May 2021 22:14:55 -0700 Subject: . --- shell/sandbox.mu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shell') diff --git a/shell/sandbox.mu b/shell/sandbox.mu index 65dd6c4e..5addec61 100644 --- a/shell/sandbox.mu +++ b/shell/sandbox.mu @@ -79,7 +79,7 @@ fn write-sandbox out: (addr stream byte), _self: (addr sandbox) { ## fn render-sandbox screen: (addr screen), _self: (addr sandbox), xmin: int, ymin: int, xmax: int, ymax: int { - clear-rect screen, xmin, ymin, xmax, ymax, 0xc5/bg=blue-bg=black + clear-rect screen, xmin, ymin, xmax, ymax, 0xc5/bg=blue-bg add-to xmin, 1/padding-left add-to ymin, 1/padding-top subtract-from xmax, 1/padding-right @@ -154,7 +154,7 @@ fn clear-sandbox-output screen: (addr screen), _self: (addr sandbox), xmin: int, var cursor-in-sandbox?/ebx: (addr boolean) <- get self, cursor-in-data? x, y <- render-gap-buffer-wrapping-right-then-down screen, data, x, y, xmax, ymax, *cursor-in-sandbox?, 3/fg, 0xc5/bg=blue-bg y <- increment - clear-rect screen, xmin, y, xmax, ymax, 0xc5/bg=blue-bg=black + clear-rect screen, xmin, y, xmax, ymax, 0xc5/bg=blue-bg } fn maybe-render-empty-screen screen: (addr screen), _self: (addr sandbox), xmin: int, ymin: int -> _/ecx: int { @@ -408,7 +408,7 @@ fn render-sandbox-menu screen: (addr screen), _self: (addr sandbox) { y <- decrement var height/ebx: int <- copy y height <- increment - clear-rect screen, 0/x, y, width, height, 0xc5/bg=blue-bg=black + clear-rect screen, 0/x, y, width, height, 0xc5/bg=blue-bg set-cursor-position screen, 0/x, y draw-text-rightward-from-cursor screen, " ctrl+... ", width, 0xf/fg, 0xc5/bg=blue-bg draw-text-rightward-from-cursor screen, " r ", width, 0/fg, 0x5c/bg=black @@ -446,7 +446,7 @@ fn render-keyboard-menu screen: (addr screen) { y <- decrement var height/edx: int <- copy y height <- increment - clear-rect screen, 0/x, y, width, height, 0xc5/bg=blue-bg=black + clear-rect screen, 0/x, y, width, height, 0xc5/bg=blue-bg set-cursor-position screen, 0/x, y draw-text-rightward-from-cursor screen, " ctrl+... ", width, 0xf/fg, 0xc5/bg=blue-bg draw-text-rightward-from-cursor screen, " r ", width, 0/fg, 0x5c/bg=black -- cgit 1.4.1-2-gfad0 h'>path: root/doc/colorschemes.txt
blob: e1fee2da0172cc6cc7a65fd821ec754cc1cf3029 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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