about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/browse.mu6
-rwxr-xr-xapps/mubin368997 -> 369023 bytes
-rw-r--r--apps/mu.subx4
-rw-r--r--apps/print-file.mu2
-rwxr-xr-xapps/randombin23597 -> 23601 bytes
5 files changed, 8 insertions, 4 deletions
diff --git a/apps/browse.mu b/apps/browse.mu
index 77ff999c..5681060f 100644
--- a/apps/browse.mu
+++ b/apps/browse.mu
@@ -96,7 +96,8 @@ $line-loop: {
       update-attributes c, r
       compare c, 0xa  # newline
       break-if-=  # no need to print newlines
-      print-byte 0, c
+      var g/eax: grapheme <- copy c
+      print-grapheme 0, g
       col <- increment
       loop
     }
@@ -176,6 +177,7 @@ fn dump in: (addr buffered-file) {
   var c/eax: byte <- read-byte-buffered in
   compare c, 0xffffffff  # EOF marker
   break-if-=
-  print-byte 0, c
+  var g/eax: grapheme <- copy c
+  print-grapheme 0, g
   loop
 }
diff --git a/apps/mu b/apps/mu
index 0d808397..fbacd783 100755
--- a/apps/mu
+++ b/apps/mu
Binary files differdiff --git a/apps/mu.subx b/apps/mu.subx
index cb2d6d71..20f59336 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -412,8 +412,10 @@ Type-id:  # (stream (addr array byte))
   # some SubX types deliberately left undefined in Mu; they can only be operated on using SubX primitives
   "stream"/imm32  # 11
   "slice"/imm32  # 12
+  "code-point"/imm32  # 13; smallest scannable unit from a text stream
+  "grapheme"/imm32  # 14; smallest printable unit; will eventually be composed of multiple code-points, but currently corresponds 1:1
   # Keep Primitive-type-ids in sync if you add types here.
-                                          0/imm32 0/imm32 0/imm32
+                                                          0/imm32
   0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32
   0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32
   0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32
diff --git a/apps/print-file.mu b/apps/print-file.mu
index aed4579d..7cd51bdc 100644
--- a/apps/print-file.mu
+++ b/apps/print-file.mu
@@ -31,7 +31,7 @@ $main-body: {
         var c/eax: byte <- read-byte-buffered in-addr
         compare c, 0xffffffff  # EOF marker
         break-if-=
-        print-byte 0, c
+        print-grapheme 0, c
         loop
       }
     }
diff --git a/apps/random b/apps/random
index 5c828306..4123332e 100755
--- a/apps/random
+++ b/apps/random
Binary files differ
lame the previous revision' href='/akspecs/ranger/blame/ranger/ext/openstruct.py?h=v1.9.0b1&id=c4e793c256b3645ab665d48a742d4ac925b75ef8'>^
d87ab338 ^




84a22ae0 ^
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

                                                                 
 
                                                                  
 

                  
 
                       
                                       
 

                                              
                            



                                                            
 

                                                                       




                                     
                                  
ksloc.org <unknown>  2006-08-03 13:50:37 +0200

applied Sanders Makefile patch' href='/acidbong/suckless/dwm/commit/Makefile?h=4.3&id=4d55eee7547ff3b9e0d801c1aa86ba62286f56c4'>4d55eee ^






dbf7e03 ^

4d55eee ^
dbf7e03 ^
4d55eee ^


dbf7e03 ^
d9386a0 ^
4d55eee ^
dbf7e03 ^

4d55eee ^



dc5c070 ^

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