From 3350c34a74844e21ea69077e01efff3bae64bdcd Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 23 Mar 2021 17:31:08 -0700 Subject: . --- html/linux/407right-justify.mu.html | 76 +++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 html/linux/407right-justify.mu.html (limited to 'html/linux/407right-justify.mu.html') diff --git a/html/linux/407right-justify.mu.html b/html/linux/407right-justify.mu.html new file mode 100644 index 00000000..4ea64e8d --- /dev/null +++ b/html/linux/407right-justify.mu.html @@ -0,0 +1,76 @@ + + + + +Mu - linux/407right-justify.mu + + + + + + + + + + +https://github.com/akkartik/mu/blob/main/linux/407right-justify.mu +
+ 1 # print 'n' with enough leading spaces to be right-justified in 'width'
+ 2 fn print-int32-decimal-right-justified screen: (addr screen), n: int, _width: int {
+ 3   # tweak things for negative numbers
+ 4   var n-width/eax: int <- decimal-size n
+ 5   var width/ecx: int <- copy _width
+ 6   {
+ 7     compare n-width, width
+ 8     break-if->=
+ 9     print-grapheme screen, 0x20/space
+10     width <- decrement
+11     loop
+12   }
+13   print-int32-decimal screen, n
+14 }
+
+ + + -- cgit 1.4.1-2-gfad0 ision' href='/danisanti/profani-tty/blame/themes/solarized-dark?id=5fcd40174988f3c786386a3337e6e1ef955b015f'>^
63770815 ^
3c59f985 ^
63770815 ^
3c59f985 ^






82f343c0 ^


3c59f985 ^



63770815 ^

49271e46 ^
3c59f985 ^

63770815 ^
3c59f985 ^
63770815 ^





3c59f985 ^
63770815 ^

3c59f985 ^
63770815 ^




3c59f985 ^
63770815 ^


3c59f985 ^
63770815 ^



5dbef8ad ^
63770815 ^

3c59f985 ^

63770815 ^
3c59f985 ^
63770815 ^

3c59f985 ^

63770815 ^
3c59f985 ^
63770815 ^

3c59f985 ^

63770815 ^
3c59f985 ^
63770815 ^

3c59f985 ^



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

             
                      





                          
                       
                     
                      






                          


                         



                      

                       
                         

                  
                
                    





                            
           

          
          




               
            


                  
                        



                     
                     

                   

                  
              
                      

                          

                         
                        
                             

                          

                         
                     
                             

                         



                           
[colours]
bkgnd=default
cmd.wins.unread=yellow
titlebar=black
titlebar.text=default
titlebar.brackets=default
titlebar.unencrypted=white
titlebar.encrypted=yellow
titlebar.untrusted=orange1
titlebar.trusted=yellow
titlebar.online=green
titlebar.offline=white
titlebar.away=wheat4
titlebar.chat=yellow
titlebar.dnd=red
titlebar.xa=orange4
statusbar=black
statusbar.text=default
statusbar.brackets=default
statusbar.active=default
statusbar.new=yellow
statusbar.current=orange1
statusbar.time=default
main.text=default
main.text.me=default
main.text.them=default
main.splash=yellow
main.help.header=yellow
main.text.history=default
main.time=default
input.text=default
subscribed=green
unsubscribed=default
otr.started.trusted=green
otr.started.untrusted=yellow
otr.ended=red
otr.trusted=green
otr.untrusted=yellow
online=green
away=wheat4
chat=green
dnd=red
xa=orange4
offline=yellow
incoming=yellow
mention=yellow
trigger=yellow
typing=yellow
gone=orange4
error=red
roominfo=yellow
roommention=yellow
roommention.term=orange1
roomtrigger=yellow
roomtrigger.term=cyan
me=green
them=cyan
roster.header=default
roster.chat=green
roster.online=green
roster.away=wheat4
roster.xa=orange4
roster.dnd=red
roster.offline=default
roster.chat.active=green
roster.online.active=green
roster.away.active=wheat4
roster.xa.active=orange4
roster.dnd.active=yellow
roster.offline.active=default
roster.chat.unread=green
roster.online.unread=green
roster.away.unread=wheat4
roster.xa.unread=orange4
roster.dnd.unread=red
roster.offline.unread=default
roster.room=green
roster.room.unread=yellow
roster.room.mention=orange1
roster.room.trigger=orange1
occupants.header=default
receipt.sent=default