aboutsummaryrefslogtreecommitdiff
path: root/content/notes
diff options
context:
space:
mode:
Diffstat (limited to 'content/notes')
-rw-r--r--content/notes/drawing-pixels-in-plan9.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/notes/drawing-pixels-in-plan9.md b/content/notes/drawing-pixels-in-plan9.md
index 6ce8973..43e890b 100644
--- a/content/notes/drawing-pixels-in-plan9.md
+++ b/content/notes/drawing-pixels-in-plan9.md
@@ -13,6 +13,7 @@ alternative for drawing that draws a yellow square on a red background.
13![Plan9 Howdy World!](/notes/plan9-pixels.png) 13![Plan9 Howdy World!](/notes/plan9-pixels.png)
14 14
15```c 15```c
16// main.c
16#include <u.h> 17#include <u.h>
17#include <libc.h> 18#include <libc.h>
18#include <draw.h> 19#include <draw.h>
@@ -52,6 +53,7 @@ void main(int argc, char *argv[])
52And then compile with `mk` (mkfile below): 53And then compile with `mk` (mkfile below):
53 54
54```makefile 55```makefile
56# mkfile
55</$objtype/mkfile 57</$objtype/mkfile
56 58
57RC=/rc/bin 59RC=/rc/bin
@@ -63,4 +65,7 @@ main:
63 $LD $LDFLAGS -o main main.$O 65 $LD $LDFLAGS -o main main.$O
64``` 66```
65 67
68And run with `./main`. To exit the program, press `Delete key` (strange but this
69is the alternative for Ctrl+C).
70
66*This is **very cool** indeed!* 71*This is **very cool** indeed!*