diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-27 17:55:37 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-27 17:55:37 +0200 |
| commit | 820365394251e2da73ef44fcf93d933242a4a197 (patch) | |
| tree | c5e43b1cc8ecb222c7fb7bc690a118ff7463af24 | |
| parent | 5db9d2945470e1786b72a50b1caddc3768b83ec9 (diff) | |
| download | mitjafelicijan.com-820365394251e2da73ef44fcf93d933242a4a197.tar.gz | |
Context added
| -rw-r--r-- | content/notes/drawing-pixels-in-plan9.md | 5 |
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 |  | 13 |  |
| 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[]) | |||
| 52 | And then compile with `mk` (mkfile below): | 53 | And then compile with `mk` (mkfile below): |
| 53 | 54 | ||
| 54 | ```makefile | 55 | ```makefile |
| 56 | # mkfile | ||
| 55 | </$objtype/mkfile | 57 | </$objtype/mkfile |
| 56 | 58 | ||
| 57 | RC=/rc/bin | 59 | RC=/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 | ||
| 68 | And run with `./main`. To exit the program, press `Delete key` (strange but this | ||
| 69 | is the alternative for Ctrl+C). | ||
| 70 | |||
| 66 | *This is **very cool** indeed!* | 71 | *This is **very cool** indeed!* |
