aboutsummaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-05-27 17:55:37 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-05-27 17:55:37 +0200
commit820365394251e2da73ef44fcf93d933242a4a197 (patch)
treec5e43b1cc8ecb222c7fb7bc690a118ff7463af24 /content
parent5db9d2945470e1786b72a50b1caddc3768b83ec9 (diff)
downloadmitjafelicijan.com-820365394251e2da73ef44fcf93d933242a4a197.tar.gz
Context added
Diffstat (limited to 'content')
-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!*